Skip to content

Send Discord Build Notification

Actions
Send a notification to a Discord WebHook reflecting the success, failure, or cancellation of a GitHub Action
v1.0.3
Latest
Star (0)

Send Discord Workflow Notification

A simple GitHub action to send a success, failure, or cancellation notification for your GitHub workflow.

Usage

Copy the following into your workflow:

notify:
  name: Send Discord workflow notification
  runs-on: ubuntu-latest
  needs: deploy
  steps:
    - name: Send notification
      uses: annybs/action-notify-discord@v1
      if: ${{ always() }}
      with:
        repository: ${{ github.repository }}
        result: ${{ needs.deploy.result }}
        run-id: ${{ github.run_id }}
        run-number: ${{ github.run_number }}
        webhook-url: ${{ secrets.DISCORD_WEBHOOK }}
        workflow: ${{ github.workflow }}

Set or replace secrets.DISCORD_WEBHOOK and YOUR_JOB_NAME as applicable for your workflow.

References

Send Discord Build Notification is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Send a notification to a Discord WebHook reflecting the success, failure, or cancellation of a GitHub Action
v1.0.3
Latest

Send Discord Build Notification is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.