diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index c500d62b..dfd54803 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -82,9 +82,10 @@ jobs: name: Slack Notify if Failed Tests needs: [run-unit-tests, build, run-integration-tests] runs-on: ubuntu-latest - if: needs.run-unit-tests.result == 'failure' || needs.build.result == 'failure' || needs.run-integration-tests.result == 'failure' + if: always() steps: - name: Notify Slack on Failure + if: ${{ contains(needs.*.result, 'failure') }} uses: slackapi/slack-github-action@v1.25.0 with: payload: | diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 190a9aa0..27cd6821 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -28,9 +28,10 @@ jobs: name: Slack Notify if Failed Tests needs: prepare-release runs-on: ubuntu-latest - if: needs.prepare-release.result == 'failure' + if: always() steps: - name: Notify Slack on Failure + if: ${{ contains(needs.*.result, 'failure') }} uses: slackapi/slack-github-action@v1.25.0 with: payload: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 40fb66ef..d724ee59 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,9 +27,10 @@ jobs: name: Slack Notify if Failed Tests needs: tf-release runs-on: ubuntu-latest - if: needs.tf-release.result == 'failure' + if: always() steps: - name: Notify Slack on Failure + if: ${{ contains(needs.*.result, 'failure') }} uses: slackapi/slack-github-action@v1.25.0 with: payload: | diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index dfa5baa9..bd775bd4 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -82,9 +82,10 @@ jobs: name: Slack Notify if Failed Tests needs: [run-unit-tests, build, run-integration-tests] runs-on: ubuntu-latest - if: needs.run-unit-tests.result == 'failure' || needs.build.result == 'failure' || needs.run-integration-tests.result == 'failure' + if: always() steps: - name: Notify Slack on Failure + if: ${{ contains(needs.*.result, 'failure') }} uses: slackapi/slack-github-action@v1.25.0 with: payload: |