Skip to content

Commit

Permalink
ci: make success a separate closing job
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK authored and mergify[bot] committed Dec 8, 2023
1 parent e5d1596 commit 9e77947
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:
cancel-in-progress: true

jobs:
success:
build:
strategy:
matrix:
os: [windows, macos, ubuntu]
Expand All @@ -33,3 +33,15 @@ jobs:
with:
check-command: ./gradlew check runAll --parallel
should-deploy: false
success:
runs-on: ubuntu-22.04
needs:
- build
if: >-
always() && (
contains(join(needs.*.result, ','), 'failure')
|| !contains(join(needs.*.result, ','), 'cancelled')
)
steps:
- name: Verify that there were no failures
run: ${{ !contains(join(needs.*.result, ','), 'failure') }}

0 comments on commit 9e77947

Please sign in to comment.