ci: New 'check' job to ensure build passes

pull/51/head
Robert Dailey 2 years ago
parent 315781b661
commit 6dc099c216

@ -125,3 +125,17 @@ jobs:
tag_name: ${{ github.event.create.ref }}
draft: false
prerelease: ${{ steps.gitversion.outputs.preReleaseTag != '' }}
# The main purpose of this job is to group all the other jobs together into one single job status
# that can be set as a requirement to merge pull requests. This is easier than enumerating all
# jobs in a workflow to ensure they all pass.
check:
if: always()
name: Check Build Succeeds
needs: [build, smoke]
runs-on: ubuntu-latest
steps:
- name: Check if all jobs succeeded
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}

Loading…
Cancel
Save