diff --git a/.github/workflows/darwin.yml b/.github/workflows/darwin.yml index d512358..d3dde30 100644 --- a/.github/workflows/darwin.yml +++ b/.github/workflows/darwin.yml @@ -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 }}"