fix: forgot to remove the force failure teehee #12
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 CI trigger | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Test | |
run: | | |
- name: Notify Discord on Failure | |
if: failure() | |
run: | | |
CI_LINK="<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}>" | |
# secrets.DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/1138292630699118733/-9QfspX7aBxiVYRKgyf70eBNBpCG6EhLWNHnEmdFsUmkx24RgTj3i-TkfR4ttiocUomh" | |
MESSAGE="The CI commit has failed, please check: $CI_LINK" | |
curl -X POST ${{ secrets.DISCORD_WEBHOOK_URL }} \ | |
-H "Content-Type: application/json" \ | |
-d '{ | |
"content": "'"$MESSAGE"'", | |
"username": "Devops Repo" | |
}' |