Skip to content

Commit 5e85957

Browse files
committed
Add failure notifications to Discord
1 parent 4ca30a0 commit 5e85957

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/php.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,12 @@ jobs:
4242
- name: PHP ${{ matrix.php }} - Run coverage test suite
4343
env:
4444
apiKey: ${{ secrets.STEAM_API_KEY }}
45-
run: composer run-script test
45+
run: composer run-script test
46+
47+
- uses: sarisia/actions-status-discord@v1
48+
if: ${{ failure() }}
49+
with:
50+
status: ${{ job.status }}
51+
webhook: ${{ secrets.DISCORD_WEBHOOK }}
52+
title: "${{ matrix.php }}: Tests failed."
53+
color: 'red'

0 commit comments

Comments
 (0)