-
Notifications
You must be signed in to change notification settings - Fork 183
31 lines (28 loc) · 879 Bytes
/
on-pr-update.yml
File metadata and controls
31 lines (28 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#=========================== begin_copyright_notice ============================
#
# Copyright (C) 2020-2021 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
#============================ end_copyright_notice =============================
name: Notify
on:
status:
pull_request_review:
permissions: read-all
jobs:
notify:
runs-on: [self-hosted, linux]
steps:
- name: Get branch name if status changed
if: github.event_name == 'status'
run: >
echo "os_branch=${{ github.event.branches[0].name }}" >> $GITHUB_ENV
- name: Get branch name if pr review state changed
if: github.event_name == 'pull_request_review'
env:
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
run: >
echo "os_branch=$PR_HEAD_REF" >> $GITHUB_ENV
- name: Notify
run: ${{ secrets.NOTIFY }}