Skip to content

Commit

Permalink
Update Dicord notification.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Salman-18 authored Dec 25, 2023
1 parent 5da015d commit 8c5a95a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/Dicord notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
if [ "${{ github.event_name }}" = "push" ]; then
MESSAGE="New push to main branch by ${GITHUB_ACTOR}"
elif [ "${{ github.event_name }}" = "pull_request" ]; then
MESSAGE="New pull request ${{ github.event.number }} by ${GITHUB_ACTOR}: ${GITHUB_SERVER_URL}/${{ github.repository }}/pull/${{ github.event.number }}"
MESSAGE="New pull request #${{ github.event.number }} by ${GITHUB_ACTOR}: ${GITHUB_SERVER_URL}/${{ github.repository }}/pull/${{ github.event.number }}"
fi
curl -X POST -H "Content-Type: application/json" -d "{\"content\":\"$MESSAGE\"}" "${{ secrets.DISCORD_WEBHOOK_URL }}"
Expand Down

0 comments on commit 8c5a95a

Please sign in to comment.