single-finish-job

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
Anton-4 2023-12-01 19:55:19 +01:00 committed by GitHub
parent 3b44a33a9c
commit d1803c1b5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ jobs:
if: needs.check-changes.outputs.run_tests == 'full'
uses: ./.github/workflows/benchmarks.yml
finish-full:
ran-full:
runs-on: ubuntu-22.04
needs: [
start-nix-linux-x86-64-tests,
@ -90,10 +90,23 @@ jobs:
steps:
- run: echo "all workflows succeeded!"
finish-none:
ran-none:
runs-on: ubuntu-22.04
needs: [check-changes]
if: needs.check-changes.outputs.run_tests == 'none'
steps:
- run: echo "Only non-code files changed. CI manager did not run any workflows."
# we need a single end job for the required checks under branch protection rules
finish:
runs-on: ubuntu-22.04
if: >
always() &&
(
needs.finish-full.result == 'success' || needs.finish-none.result == 'success'
)
steps:
- run: echo "Workflow succeeded :)"