From 05130dfb946119cb36209063ede8ce38ac68477c Mon Sep 17 00:00:00 2001 From: shivaraj-bh Date: Tue, 6 Aug 2024 11:11:19 +0530 Subject: [PATCH] run static-binary check on-success of CI --- .github/workflows/static-binary-check.yaml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/static-binary-check.yaml b/.github/workflows/static-binary-check.yaml index 0cdb9fa4..27413719 100644 --- a/.github/workflows/static-binary-check.yaml +++ b/.github/workflows/static-binary-check.yaml @@ -1,12 +1,22 @@ name: "Static binary" on: workflow_run: - workflows: ["CI"] - types: - - completed + workflows: [CI] + types: [completed] jobs: + on-success: + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} + steps: + - run: echo 'The triggering workflow passed' + on-failure: + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'failure' }} + steps: + - run: echo 'The triggering workflow failed' check: + needs: on-success runs-on: ${{ matrix.system }} strategy: matrix: