Raw
1 name: Notify Discord on issue labels
2 on:
3 issues:
4 types: [labeled]
5
6 jobs:
7 notify-help-wanted:
8 if: github.event.label.name == 'help-wanted'
9 runs-on: ubuntu-latest
10 steps:
11 - name: Discord Notification
12 env:
13 DISCORD_WEBHOOK: ${{ secrets.DISCORD_HELP_WANTED_WEBHOOK }}
14 uses: Ilshidur/action-discord@0.4.0
15 with:
16 args: "**Help Wanted** issue: [${{ github.event.issue.title }}](<${{ github.event.issue.html_url }}>)"
17
18 notify-good-first-issue:
19 if: github.event.label.name == 'good first issue'
20 runs-on: ubuntu-latest
21 steps:
22 - name: Discord Notification
23 env:
24 DISCORD_WEBHOOK: ${{ secrets.DISCORD_GOOD_FIRST_ISSUE_WEBHOOK }}
25 uses: Ilshidur/action-discord@0.4.0
26 with:
27 args: "**Good First Issue**: [${{ github.event.issue.title }}](<${{ github.event.issue.html_url }}>)"