Skip to content

Commit 87276ef

Browse files
authored
[actions] split out compiler notify (#32079)
1 parent f13abbb commit 87276ef

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/shared_discord_notify.yml

+16-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ on:
55
types: [labeled]
66

77
jobs:
8-
notify:
9-
if: ${{ github.event.label.name == 'React Core Team' }}
8+
notify_core:
9+
if: ${{ !contains(github.event.pull_request.title, '[compiler]') && github.event.label.name == 'React Core Team' }}
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Discord Webhook Action
@@ -19,3 +19,17 @@ jobs:
1919
embed-title: '#${{ github.event.number }} (+${{github.event.pull_request.additions}} -${{github.event.pull_request.deletions}}): ${{ github.event.pull_request.title }}'
2020
embed-description: ${{ github.event.pull_request.body }}
2121
embed-url: ${{ github.event.pull_request.html_url }}
22+
notify_compiler:
23+
if: ${{ contains(github.event.pull_request.title, '[compiler]') && github.event.label.name == 'React Core Team' }}
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Discord Webhook Action
27+
uses: tsickert/[email protected]
28+
with:
29+
webhook-url: ${{ secrets.COMPILER_DISCORD_WEBHOOK_URL }}
30+
embed-author-name: ${{ github.event.pull_request.user.login }}
31+
embed-author-url: ${{ github.event.pull_request.user.html_url }}
32+
embed-author-icon-url: ${{ github.event.pull_request.user.avatar_url }}
33+
embed-title: '#${{ github.event.number }} (+${{github.event.pull_request.additions}} -${{github.event.pull_request.deletions}}): ${{ github.event.pull_request.title }}'
34+
embed-description: ${{ github.event.pull_request.body }}
35+
embed-url: ${{ github.event.pull_request.html_url }}

0 commit comments

Comments
 (0)