forked from Alex/Pterodactyl-Panel
Add notification for discord hook
This commit is contained in:
parent
8eaa44411f
commit
992f98b6c1
26
.github/workflows/tests.yml
vendored
26
.github/workflows/tests.yml
vendored
@ -65,3 +65,29 @@ jobs:
|
||||
env:
|
||||
TESTING_DB_PORT: ${{ job.services.mysql.ports[3306] }}
|
||||
TESTING_DB_USERNAME: root
|
||||
- name: notify discord
|
||||
if: ${{ failure() }}
|
||||
uses: rjstone/discord-webhook-notify@v1
|
||||
with:
|
||||
severity: error
|
||||
username: Github Actions
|
||||
color: "#D01124"
|
||||
description: Tests are currently failing.
|
||||
details: |
|
||||
|
||||
Run: ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}
|
||||
footer: ${GITHUB_SHA::8}
|
||||
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
- name: notify discord
|
||||
if: ${{ success() }}
|
||||
uses: rjstone/discord-webhook-notify@v1
|
||||
with:
|
||||
severity: info
|
||||
username: Github Actions
|
||||
color: "#0F8513"
|
||||
description: Tests passed.
|
||||
details: |
|
||||
|
||||
Run: ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}
|
||||
footer: ${GITHUB_SHA::8}
|
||||
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
|
Loading…
Reference in New Issue
Block a user