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://github.githubassets.com/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"