[Gold IV] Title: LCS 2, Time: 4 ms, Memory: 5940 KB -BaekjoonHub #111
This file contains 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: 'Discord Alarm' | |
on: push | |
jobs: | |
webhook: | |
name: 'WEBHOOK' | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: pwd | |
id: message | |
shell: bash | |
run: | | |
echo "STEP_VALUE=$(git log --pretty=format:"%s" -1)" >> $GITHUB_OUTPUT | |
- name: Send a message to Discord | |
shell: bash | |
run: | | |
curl -X POST https://discord.com/api/webhooks/${{ secrets.WEBHOOK_ID }}/${{ secrets.WEBHOOK_TOKEN }} \ | |
-H 'Content-type: application/json' \ | |
-d '{ | |
"content": "${{ steps.message.outputs.STEP_VALUE }}" | |
}' |