Skip to content

fix: forgot to remove the force failure teehee #12

fix: forgot to remove the force failure teehee

fix: forgot to remove the force failure teehee #12

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"
}'