From 8c5561de013ce067b7fc9352612942b787e262b2 Mon Sep 17 00:00:00 2001 From: Robin Bryce Date: Thu, 14 Nov 2024 11:47:47 +0000 Subject: [PATCH] add the failure case Note: this won't run until the workflow is merged to main skip-checks: true --- .github/workflows/merge-requires.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/merge-requires.yml b/.github/workflows/merge-requires.yml index 055833b..6e4d086 100644 --- a/.github/workflows/merge-requires.yml +++ b/.github/workflows/merge-requires.yml @@ -6,7 +6,9 @@ name: Merge Requires on: workflow_run: - workflows: ["Build and test", "Package and Publish"] + workflows: + - Build and test + - Package and Publish types: - completed @@ -15,4 +17,10 @@ jobs: runs-on: ubuntu-latest if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - - run: echo 'The Run Tests workflow passed' + - run: echo 'The repository configured checks have all passed' + + on-failure: + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'failure' }} + steps: + - run: echo 'One or more configured repository checks failed'