Skip to content

Commit b7321a4

Browse files
committed
Trigger BVT in repo github-action-hpcc-terraform
1 parent 89289f6 commit b7321a4

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/trigger-bvt.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Trigger BVT In Other Repp
2+
3+
on:
4+
workflow_dispatch
5+
6+
permissions:
7+
contents: read
8+
id-token: write
9+
10+
jobs:
11+
Trigger BVT:
12+
13+
name: "Trigger BVT"
14+
env:
15+
GITHUB_ORG: xwang2713
16+
GITHUB_REPO: github-action-hpcc-terraform
17+
GITHUB_REPO_BRANCH: main
18+
WF_YAML_FILE: az-bvt.yml
19+
20+
runs-on: Ubuntu-22.04
21+
steps:
22+
- name: 'Call Curl to trigger another workflow'
23+
run: |
24+
curl -L \
25+
-X POST \
26+
-H "Accept: application/vnd.github+json" \
27+
-H "Authorization: Bearer ${{ secrets.MING_GITHUB_TOKEN }}" \
28+
-H "X-GitHub-Api-Version: 2022-11-28" \
29+
https://api.github.com/repos/$GITHUB_ORG/$GITHUB_REPO/actions/workflows/$WF_YAML_FILE/dispatches \
30+
-d '{"ref": "${GITHUB_REPO_BRANCH}", "inputs": { "hpccVersion":"9.8.18", "hpccSrcBranch":"community_9.8.18-1" }}'
31+

0 commit comments

Comments
 (0)