Skip to content

Commit 382e74c

Browse files
authored
chore: Add PR notification (#50)
* chore: Add PR notification * Update pull-request.yml
1 parent 9345028 commit 382e74c

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

.github/workflows/pull-request.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,30 @@
11
name: "Pull Request"
2-
on: pull_request
2+
on: [ workflow_dispatch, pull_request ]
3+
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
6+
cancel-in-progress: true
7+
8+
permissions:
9+
contents: read
10+
pull-requests: read
11+
checks: write
12+
id-token: write
13+
314
jobs:
415
pr-check:
516
name: "Pull Request Check"
617
uses: mParticle/mparticle-workflows/.github/workflows/android-kit-pull-request.yml@main
718
with:
8-
branch_name: ${{ github.head_ref }}
19+
branch_name: ${{ github.head_ref }}
20+
21+
pr-notify:
22+
if: >
23+
github.event_name == 'pull_request' &&
24+
github.event.pull_request.draft == false
25+
needs:
26+
- pr-check
27+
name: Notify GChat
28+
uses: ROKT/rokt-workflows/.github/workflows/oss_pr_opened_notification.yml@main
29+
secrets:
30+
gchat_webhook: ${{ secrets.GCHAT_PRS_WEBHOOK }}

0 commit comments

Comments
 (0)