Skip to content

🍴 GitHub workflows notification webhook for Discord in the style of the default GitHub webhook.

License

Notifications You must be signed in to change notification settings

encode42/discord-workflows-webhook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Discord Webhook for Github Actions

Modified to have the same style as the default GitHub webhook.
This is mainly for my own personal use! There will be little to no support provided.

Setup

  1. In Github secrets, add a WEBHOOK_URL variable with the Discord web hook URL.

  2. Inside your workflow file, add this snippet after the build-critical task:

        - name: Send Webhook Notification
          if: always()
          run: |
            git clone https://github.com/Encode42/discord-workflows-webhook.git webhook
            bash webhook/send.sh ${{ job.status }} ${{ secrets.WEBHOOK_URL }}
          shell: bash

    To see a working example, look at this workflow file.

  3. That's all! Webhook notifications will automatically be sent on every workflow run.

About

🍴 GitHub workflows notification webhook for Discord in the style of the default GitHub webhook.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages

  • Shell 79.9%
  • Ruby 20.1%