Skip to content

⛓ Here's your serverless solution for sending build status from GitHub Actions to Discord as webhooks.

License

Notifications You must be signed in to change notification settings

dhinakg/github-actions-discord-webhook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.
        - uses: actions/setup-ruby@v1
        - name: Send Webhook Notification
          if: always()
          env:
            JOB_STATUS: ${{ job.status }}
            WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
            HOOK_OS_NAME: ${{ runner.os }}
            WORKFLOW_NAME: ${{ github.workflow }}
            JOB_ID: ${{ github.job }}
          run: |
            git clone https://github.com/dhinakg/github-actions-discord-webhook.git webhook
            bash webhook/send.sh $JOB_STATUS $WEBHOOK_URL
          shell: bash
  3. Enjoy!

About

⛓ Here's your serverless solution for sending build status from GitHub Actions to Discord as webhooks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 91.6%
  • Ruby 8.4%