File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Notify Integration Release (Manual)
2+ on :
3+ workflow_dispatch :
4+ inputs :
5+ version :
6+ description : " The release version (semver)"
7+ default : 0.0.1
8+ required : false
9+ branch :
10+ description : " A branch or SHA"
11+ default : ' main'
12+ required : false
13+ jobs :
14+ notify-release :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout this repo
18+ uses : actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
19+ with :
20+ ref : ${{ github.event.inputs.branch }}
21+ # Ensure that Docs are Compiled
22+ - uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
23+ - shell : bash
24+ run : make build-docs
25+ - shell : bash
26+ run : |
27+ if [[ -z "$$(git status -s)" ]]; then
28+ echo "OK"
29+ else
30+ echo "Docs have been updated, but the compiled docs have not been committed."
31+ echo "Run 'make build-docs', and commit the result to resolve this error."
32+ exit 1
33+ fi
34+ # Perform the Release
35+ - name : Checkout integration-release-action
36+ uses : actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
37+ with :
38+ repository : hashicorp/integration-release-action
39+ path : ./integration-release-action
40+ - name : Notify Release
41+ uses : ./integration-release-action
42+ with :
43+ integration_identifier : " packer/hashicorp/tencentcloud"
44+ release_version : ${{ github.event.inputs.version }}
45+ release_sha : ${{ github.event.inputs.branch }}
46+ github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments