mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-11 18:58:24 +03:00
single-finish-job
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
parent
3b44a33a9c
commit
d1803c1b5a
19
.github/workflows/ci_manager.yml
vendored
19
.github/workflows/ci_manager.yml
vendored
@ -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 :)"
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user