Skip to content

Commit

Permalink
add the failure case
Browse files Browse the repository at this point in the history
Note: this won't run until the workflow is merged to main

skip-checks: true
  • Loading branch information
Robin Bryce committed Nov 14, 2024
1 parent 85b5aff commit 8c5561d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/merge-requires.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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'

0 comments on commit 8c5561d

Please sign in to comment.