|
1 |
| -name: Notify Integration Release (Tag) |
2 |
| -on: |
3 |
| - push: |
4 |
| - tags: |
5 |
| - - '*.*.*' # Proper releases |
6 |
| -jobs: |
7 |
| - strip-version: |
8 |
| - runs-on: ubuntu-latest |
9 |
| - outputs: |
10 |
| - packer-version: ${{ steps.strip.outputs.packer-version }} |
11 |
| - steps: |
12 |
| - - name: Strip leading v from version tag |
13 |
| - id: strip |
14 |
| - env: |
15 |
| - REF: ${{ github.ref_name }} |
16 |
| - run: | |
17 |
| - echo "packer-version=$(echo "$REF" | sed -E 's/v?([0-9]+\.[0-9]+\.[0-9]+)/\1/')" >> "$GITHUB_OUTPUT" |
18 |
| - notify-release: |
19 |
| - needs: |
20 |
| - - strip-version |
21 |
| - runs-on: ubuntu-latest |
22 |
| - steps: |
23 |
| - - name: Checkout this repo |
24 |
| - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 |
25 |
| - with: |
26 |
| - ref: ${{ github.ref }} |
27 |
| - # Ensure that Docs are Compiled |
28 |
| - - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 |
29 |
| - - shell: bash |
30 |
| - run: make generate |
31 |
| - - shell: bash |
32 |
| - run: | |
33 |
| - uncommitted="$(git status -s)" |
34 |
| - if [[ -z "$uncommitted" ]]; then |
35 |
| - echo "OK" |
36 |
| - else |
37 |
| - echo "Docs have been updated, but the compiled docs have not been committed." |
38 |
| - echo "Run 'make generate', and commit the result to resolve this error." |
39 |
| - echo "Generated but uncommitted files:" |
40 |
| - echo "$uncommitted" |
41 |
| - exit 1 |
42 |
| - fi |
43 |
| - # Perform the Release |
44 |
| - - name: Checkout integration-release-action |
45 |
| - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 |
46 |
| - with: |
47 |
| - repository: hashicorp/integration-release-action |
48 |
| - path: ./integration-release-action |
49 |
| - - name: Notify Release |
50 |
| - uses: ./integration-release-action |
51 |
| - with: |
52 |
| - integration_identifier: "packer/hashicorp/tencentcloud" |
53 |
| - release_version: ${{ needs.strip-version.outputs.packer-version }} |
54 |
| - release_sha: ${{ github.ref }} |
55 |
| - github_token: ${{ secrets.GITHUB_TOKEN }} |
| 1 | +# name: Notify Integration Release (Tag) |
| 2 | +# on: |
| 3 | +# push: |
| 4 | +# tags: |
| 5 | +# - '*.*.*' # Proper releases |
| 6 | +# jobs: |
| 7 | +# strip-version: |
| 8 | +# runs-on: ubuntu-latest |
| 9 | +# outputs: |
| 10 | +# packer-version: ${{ steps.strip.outputs.packer-version }} |
| 11 | +# steps: |
| 12 | +# - name: Strip leading v from version tag |
| 13 | +# id: strip |
| 14 | +# env: |
| 15 | +# REF: ${{ github.ref_name }} |
| 16 | +# run: | |
| 17 | +# echo "packer-version=$(echo "$REF" | sed -E 's/v?([0-9]+\.[0-9]+\.[0-9]+)/\1/')" >> "$GITHUB_OUTPUT" |
| 18 | +# notify-release: |
| 19 | +# needs: |
| 20 | +# - strip-version |
| 21 | +# runs-on: ubuntu-latest |
| 22 | +# steps: |
| 23 | +# - name: Checkout this repo |
| 24 | +# uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 |
| 25 | +# with: |
| 26 | +# ref: ${{ github.ref }} |
| 27 | +# # Ensure that Docs are Compiled |
| 28 | +# - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 |
| 29 | +# - shell: bash |
| 30 | +# run: make generate |
| 31 | +# - shell: bash |
| 32 | +# run: | |
| 33 | +# uncommitted="$(git status -s)" |
| 34 | +# if [[ -z "$uncommitted" ]]; then |
| 35 | +# echo "OK" |
| 36 | +# else |
| 37 | +# echo "Docs have been updated, but the compiled docs have not been committed." |
| 38 | +# echo "Run 'make generate', and commit the result to resolve this error." |
| 39 | +# echo "Generated but uncommitted files:" |
| 40 | +# echo "$uncommitted" |
| 41 | +# exit 1 |
| 42 | +# fi |
| 43 | +# # Perform the Release |
| 44 | +# - name: Checkout integration-release-action |
| 45 | +# uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 |
| 46 | +# with: |
| 47 | +# repository: hashicorp/integration-release-action |
| 48 | +# path: ./integration-release-action |
| 49 | +# - name: Notify Release |
| 50 | +# uses: ./integration-release-action |
| 51 | +# with: |
| 52 | +# integration_identifier: "packer/hashicorp/tencentcloud" |
| 53 | +# release_version: ${{ needs.strip-version.outputs.packer-version }} |
| 54 | +# release_sha: ${{ github.ref }} |
| 55 | +# github_token: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments