Skip to content

Latest commit

 

History

History
17 lines (17 loc) · 785 Bytes

README.md

File metadata and controls

17 lines (17 loc) · 785 Bytes

Discord Webhook for Github Actions

Setup

  1. In Github secrets, add a WEBHOOK_URL variable with the Discord web hook URL
  2. In your Github actions yml file, add this to reference the variable you just created:
    • To see a real example, visit here.
        - name: Send Webhook Notification
          if: always()
          env:
            JOB_STATUS: ${{ job.status }}
            WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
          run: |
            wget https://raw.githubusercontent.com/DiscordHooks/github-actions-discord-webhook/master/send.sh
            chmod +x send.sh
            ./send.sh $JOB_STATUS $WEBHOOK_URL
  3. Enjoy!