Add failure status to ci/cd
This commit is contained in:
parent
cf7682bc52
commit
1755ead394
@ -72,8 +72,17 @@ jobs:
|
||||
needs: [changes, Build-and-Push-Docker]
|
||||
if: ${{ needs.Build-and-Push-Docker.result == 'success' }}
|
||||
steps:
|
||||
- name: Post status to discord
|
||||
- name: Post status of successful run to discord
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: sarisia/actions-status-discord@v1
|
||||
with:
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
if: ${{ needs.Build-and-Push-Docker.result == 'failure' }}
|
||||
steps:
|
||||
- name: Post status of failed run to discord
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: sarisia/actions-status-discord@v1
|
||||
with:
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
color: 0xff0000
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user