From a4aecf9c72da6dba5e9bd775c0bd2cdcaa0a6e2d Mon Sep 17 00:00:00 2001 From: Henry Recker Date: Mon, 17 Nov 2025 16:04:40 -0600 Subject: [PATCH] Fix slack webhook trigger condition Align with other repos, do not trigger on manual workflow runs --- .github/workflows/code-analysis-lint-test.yaml | 2 +- .github/workflows/codeql.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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