1- name : Discord Notification
2-
3- on :
4- push :
5- branches : [ main, master ]
6- pull_request :
7- types : [opened, closed, reopened]
8-
9- jobs :
10- discord-notification :
11- runs-on : ubuntu-latest
12- steps :
13- - name : Checkout code
14- uses : actions/checkout@v3
15- with :
16- fetch-depth : 0
17-
18- - name : Discord Webhook
19- env :
20- DISCORD_WEBHOOK : ${{ secrets.DISCORD_WEBHOOK }}
21- uses : Ilshidur/action-discord@master
22- with :
23- args : |
24- 🔔 **New Activity on Thread-Generator**
25-
26- 🤖 Event: ${{ github.event_name }}
27- 👤 Actor: **${{ github.actor }}**
28-
29- 📝 Details:
30- `${{ github.event_name == 'pull_request' && format('PR {0} - {1}', github.event.pull_request.number, github.event.pull_request.title) || github.event.head_commit.message }}`
31-
32- 🔗 [View Changes](<${{ github.event.pull_request.html_url || github.event.head_commit
33- .url }}>)
34-
35- 📦 Repository: [${{ github.repository }}](<${{ github.server_url }}/${{ github
1+ name : Discord Notification
2+
3+ on :
4+ push :
5+ branches : [ main, master ]
6+ pull_request :
7+ types : [opened, closed, reopened]
8+
9+ jobs :
10+ discord-notification :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v3
15+ with :
16+ fetch-depth : 0
17+
18+ - name : Discord Webhook
19+ env :
20+ DISCORD_WEBHOOK : ${{ secrets.DISCORD_WEBHOOK }}
21+ uses : Ilshidur/action-discord@master
22+ with :
23+ args : |
24+ 🔔 **New Activity on Thread-Generator**
25+
26+ 🤖 Event: ${{ github.event_name }}
27+ 👤 Actor: **${{ github.actor }}**
28+
29+ 📝 Details:
30+ `${{ github.event_name == 'pull_request' && format('PR {0} - {1}', github.event.pull_request.number, github.event.pull_request.title) || github.event.head_commit.message }}`
31+
32+ 🔗 [View Changes](<${{ github.event.pull_request.html_url || github.event.head_commit
33+ .url }}>)
34+
35+ 📦 Repository: [${{ github.repository }}](<${{ github.server_url }}/${{ github
3636 .repository }}>)
0 commit comments