diff --git a/.github/workflows/code-analysis-lint-test.yaml b/.github/workflows/code-analysis-lint-test.yaml index cc0a11b6..bfb445b2 100644 --- a/.github/workflows/code-analysis-lint-test.yaml +++ b/.github/workflows/code-analysis-lint-test.yaml @@ -145,7 +145,7 @@ jobs: TEST_PINGONE_REGION_CODE: ${{ secrets.TEST_PINGONE_REGION_CODE }} onfailure: - if: ${{ always() && github.event_name == 'schedule' && contains(needs.*.result, 'failure') }} + if: ${{ failure() && github.event_name == 'schedule' }} needs: [fmt, vet, golangci, importfmt, test] name: Send failure webhook runs-on: ubuntu-latest diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index 030a9e42..ffe382be 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -73,7 +73,7 @@ jobs: category: "/language:${{matrix.language}}" onfailure: - if: ${{ always() && github.event_name == 'schedule' && contains(needs.*.result, 'failure') }} + if: ${{ failure() && github.event_name == 'schedule' }} needs: [analyze] name: Send failure webhook runs-on: ubuntu-latest