Skip to content

Commit 7f7a088

Browse files
Update discord-notify.yml
1 parent ca02200 commit 7f7a088

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/discord-notify.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ on:
99
types: [closed]
1010

1111
jobs:
12-
# The workflow job name
13-
discord-notifier:
14-
# The type of runner that the job will run on
12+
notify:
1513
runs-on: ubuntu-latest
16-
# Sequence of tasks
14+
1715
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 }}

0 commit comments

Comments
 (0)