File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change 9
9
types : [closed]
10
10
11
11
jobs :
12
- # The workflow job name
13
- discord-notifier :
14
- # The type of runner that the job will run on
12
+ notify :
15
13
runs-on : ubuntu-latest
16
- # Sequence of tasks
14
+
17
15
steps :
18
- - name : Discord Notification
19
- uses : tenzin1308/discord-notification@v1.0.0
20
- with :
21
- discord-webhook-url : ${{ secrets.WEBHOOKS_URL }}
16
+ - name : Send Discord notification
17
+ run : |
18
+ REPO_NAME=$(basename ${{ github.repository }})
19
+ curl -X POST -H "Content-Type: application/json" \
20
+ -d "$(jq -n --arg content "Changes in **$REPO_NAME**
21
+ **Commit by:** ${{ github.actor }}
22
+ **Message:** ${{ github.event.head_commit.message }}
23
+ **[View Commit](${{ github.event.head_commit.url }})**" \
24
+ '{"content":$content}')" \
25
+ ${{ secrets.DISCORD_WEBHOOK_URL }}
You can’t perform that action at this time.
0 commit comments