Skip to content

Commit 339160d

Browse files
committed
Fix Discord webhook curl command
1 parent aaf0c7d commit 339160d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/discord-notify.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,14 @@ jobs:
2424
echo "files=$CHANGED_FILES" >> $GITHUB_OUTPUT
2525
2626
- name: Send Discord Notification
27-
env:
28-
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
2927
run: |
3028
COMMIT_MSG=$(echo '${{ github.event.head_commit.message }}' | sed 's/"/\\"/g' | head -c 1000)
3129
AUTHOR="${{ github.event.head_commit.author.name }}"
3230
SHORT_SHA="${{ github.sha }}"
3331
SHORT_SHA=${SHORT_SHA:0:7}
3432
3533
curl -H "Content-Type: application/json" \
34+
-X POST \
3635
-d "{\"embeds\": [{
3736
\"title\": \"🚀 FlockersDevHub Updated\",
3837
\"description\": \"New changes have been pushed to the website\",
@@ -53,4 +52,4 @@ jobs:
5352
},
5453
\"timestamp\": \"$(date -u +%Y-%m-%dT%H:%M:%S.000Z)\"
5554
}]}" \
56-
$DISCORD_WEBHOOK
55+
"${{ secrets.WEBHOOK }}"

0 commit comments

Comments
 (0)