File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Upon status change/review completed on PR, send event to update Embargo
2
+
3
+ name : Notify Embargo
4
+ on :
5
+ status :
6
+ pull_request_review :
7
+
8
+ jobs :
9
+ notify-embargo :
10
+ runs-on : self-hosted
11
+ steps :
12
+ - name : Get branch name if status changed
13
+ if : github.event_name == 'status'
14
+ run : >
15
+ echo "::set-env name=os_branch::${{ github.event.branches[0].name }}"
16
+
17
+ - name : Get branch name if pr review state changed
18
+ if : github.event_name == 'pull_request_review'
19
+ run : >
20
+ echo "::set-env name=os_branch::${{ github.event.pull_request.head.ref }}"
21
+
22
+ - name : Display detected branch name
23
+ run : echo $os_branch
24
+
25
+ - name : Notify Embargo Repository about status change
26
+ run : >
27
+ curl -X POST
28
+ -H "Accept: application/vnd.github.v3+json"
29
+ -H "Authorization: token ${{ secrets.IGCBOT_TOKEN }}"
30
+ -L 'https://api.github.com/repos/intel-innersource/drivers.gpu.unified/actions/workflows/check-merge.yml/dispatches'
31
+ -d '{"ref":"comp/igc", "inputs": {"pr_number": "-1", "os_branch":"'$os_branch'"}}'
32
+
You can’t perform that action at this time.
0 commit comments