Skip to content

Commit

Permalink
chore: update notfiy-on-failure
Browse files Browse the repository at this point in the history
  • Loading branch information
PengyuanZhao committed Feb 13, 2024
1 parent d8e9a02 commit 5e16900
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test Build
on:
workflow_dispatch:
pull_request:
push:

jobs:
run-tests:
Expand Down Expand Up @@ -46,6 +47,8 @@ jobs:
sudo apt-get install -y vim
make integration-only
# TODO Display test report

trigger-release:
runs-on: ubuntu-latest
container:
Expand All @@ -66,7 +69,7 @@ jobs:
steps:
- name: Notify Slack on Failure
uses: slackapi/[email protected]
if: failure()
if: ${{ always() && contains(needs.*.result, 'failure') }}
with:
payload: |
{
Expand Down

0 comments on commit 5e16900

Please sign in to comment.