@samitouri / QOS-React-2 / commits / 87276ef1ef

[actions] split out compiler notify (#32079)

Ricky committed Jan 15, 2025 at 16:41 UTC 87276ef1efb340467563c107f24248653d7f7f00
1 file changed +16 -2
.github/workflows/shared_discord_notify.yml
+16 -2
@@ -5,8 +5,8 @@ on:
5 types: [labeled]
6
7 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' }}
10 runs-on: ubuntu-latest
11 steps:
12 - name: Discord Webhook Action
@@ -19,3 +19,17 @@ jobs:
19 embed-title: '#${{ github.event.number }} (+${{github.event.pull_request.additions}} -${{github.event.pull_request.deletions}}): ${{ github.event.pull_request.title }}'
20 embed-description: ${{ github.event.pull_request.body }}
21 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/discord-webhook@v6.0.0
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 }}