Skip to content

Commit df7d214

Browse files
igcbotjwarumze
andauthored
Changes in code. (#1)
Co-authored-by: Warumzer, Jakub <[email protected]>
1 parent 545a852 commit df7d214

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/on-pr-update.yml

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

0 commit comments

Comments
 (0)