Skip to content

Commit 6725d1c

Browse files
committed
Managed by Terraform: Update notify-integration-release-via-manual github workflow
1 parent 5e45dfb commit 6725d1c

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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 }}

0 commit comments

Comments
 (0)