File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments