Merge branch 'Fire-Frog-Fuel:TEMP' into main #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Notify Discord on Any Push | |
on: | |
push: | |
jobs: | |
notify: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send commit to Discord | |
run: | | |
echo '{ | |
"content": "**New commit pushed by '${{ github.actor }}'**\nBranch: `${{ github.ref_name }}`\nCommit: [${{ github.event.head_commit.id }}](${{ github.event.head_commit.url }})\nMessage: ${{ github.event.head_commit.message }}" | |
}' > payload.json | |
curl -H "Content-Type: application/json" \ | |
-X POST \ | |
-d @payload.json \ | |
${{ secrets.DISCORD_WEBHOOK_URL }} |