[Gold IV] Title: 도시 분할 계획, Time: 360 ms, Memory: 20976 KB -BaekjoonHub #109
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 }}" | |
}' |