Skip to content

Commit

Permalink
Merge pull request #80 from CCBR/develop
Browse files Browse the repository at this point in the history
ci: use build status job for branch protection with matrix
  • Loading branch information
kelly-sovacool authored Sep 19, 2023
2 parents 25c520a + 2d694e6 commit 0a5b128
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
strategy:
matrix:
python-version: ["3.9"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -38,3 +37,14 @@ jobs:
with:
name: nextflow-log
path: .nextflow.log
build-status: # https://github.com/orgs/community/discussions/4324#discussioncomment-3477871
runs-on: ubuntu-latest
needs: [build]
if: always()
steps:
- name: Successful build
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: Failing build
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1

0 comments on commit 0a5b128

Please sign in to comment.