.github/workflows/darwin.yml: notify matrix room on failure
This commit is contained in:
parent
a668626fcf
commit
495633b693
1 changed files with 5 additions and 0 deletions
5
.github/workflows/darwin.yml
vendored
5
.github/workflows/darwin.yml
vendored
|
@ -48,3 +48,8 @@ jobs:
|
|||
- name: Deploy
|
||||
run: |
|
||||
./inv deploy --hosts ${{ matrix.host }}
|
||||
- name: Alert on failure
|
||||
if: ${{ failure() }}
|
||||
run: |
|
||||
curl -XPOST -d '{"msgtype":"m.text", "body":"${{ matrix.host }}: deployment failed"}' \
|
||||
"https://matrix.org/_matrix/client/r0/rooms/!cBybDCkeRlSWfuaFvn:numtide.com/send/m.room.message?access_token=${{ secrets.TOKEN_MATRIX_BOT }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue