Send slack alerts on cancelled builds
Sometimes tests run indefinitely and are automatically cancelled by github
after 6 hours. It's useful to be alerted when this happens.
@@ -26,7 +26,7 @@ jobs:
run: just ci-lint-client
- name: Notify Slack of Failure
- if: failure()
+ if: cancelled() || failure()
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
@@ -49,7 +49,7 @@ jobs:
run: just ci-lint-splinter
- name: Notify Slack of Failure
- if: failure()
+ if: cancelled() || failure()
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
@@ -72,7 +72,7 @@ jobs:
run: just ci-lint-openapi
- name: Notify Slack of Failure
- if: failure()
+ if: cancelled() || failure()
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
@@ -95,7 +95,7 @@ jobs:
run: just ci-test
- name: Notify Slack of Failure
- if: failure()
+ if: cancelled() || failure()
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
@@ -118,7 +118,7 @@ jobs:
run: just ci-test-gameroom
- name: Notify Slack of Failure
- if: failure()
+ if: cancelled() || failure()
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
@@ -141,7 +141,7 @@ jobs:
run: just ci-test-gameroom-ui
- name: Notify Slack of Failure
- if: failure()
+ if: cancelled() || failure()
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
@@ -168,7 +168,7 @@ jobs:
run: just docker-build
- name: Notify Slack of Failure
- if: failure()
+ if: cancelled() || failure()
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
@@ -191,7 +191,7 @@ jobs:
run: just ci-shellcheck
- name: Notify Slack of Failure
- if: failure()
+ if: cancelled() || failure()
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
@@ -214,7 +214,7 @@ jobs:
run: just ci-lint-dockerfiles
- name: Notify Slack of Failure
- if: failure()
+ if: cancelled() || failure()
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
