From a3dbf5d5e39d0b49f1fc22f39396690abe9beffa Mon Sep 17 00:00:00 2001 From: Mac Siri Date: Fri, 4 Nov 2022 07:06:22 -0400 Subject: [PATCH] Fix CI-status-report (#18679) * Test CI status report * Fail both regardless * that wasn't suppose to work * Test using conclusion * Test alls-green * Add back report * Add or case? * Remove success() * Only send message on main --- .github/workflows/ci-cd.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 08af9aab8..47b50bd5a 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -193,11 +193,10 @@ jobs: if: always() steps: - - run: exit 0 - if: success() - - - run: exit 1 - if: failure() + - name: Decide whether the needed jobs succeeded or failed + uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }} - name: Report failure to Slack channel uses: slackapi/slack-github-action@v1