Skip to content

Commit

Permalink
Experimental, repo specific, agregate merge check (#28)
Browse files Browse the repository at this point in the history
* Experimental, repo specific, agregate merge check

AB#10153

* all branches for Merge Requires

* add the failure case

Note: this won't run until the workflow is merged to main

skip-checks: true

* re-enable windows

---------

Co-authored-by: Robin Bryce <[email protected]>
  • Loading branch information
robinbryce and Robin Bryce authored Nov 14, 2024
1 parent 4e84abd commit d25e756
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/merge-requires.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This workflow configures the repository specific choices of which CI builds
# must pass in order for a build to merge. This allows a sinlge global teraform
# configured rule to require a "well known" check in each repository. Whilst
# granting repository stakeholders the ability configure what workflows are
# appropriate to satisfy that check.
name: Merge Requires
on:
workflow_run:
workflows:
- Build and test
- Package and Publish
types:
- completed

jobs:
on-success:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- 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 d25e756

Please sign in to comment.