Fix trigger for following jobs. (#2282)

This commit is contained in:
Luca Palmieri 2023-02-02 12:26:21 +00:00 committed by GitHub
parent 2695c7cffb
commit 1b87953483
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -103,6 +103,12 @@ jobs:
name: Upgrade gradle.properties
needs:
- get-or-create-release-branch
# See https://github.com/actions/runner/issues/2205#issuecomment-1381988186 for an explanation as to why
# we need this here _even though_ the job we depend on is never skipped.
if: |
always() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
runs-on: ubuntu-latest
outputs:
commit_sha: ${{ steps.gradle-push.outputs.commit_sha }}
@ -135,6 +141,12 @@ jobs:
name: Release
needs:
- upgrade-gradle-properties
# See https://github.com/actions/runner/issues/2205#issuecomment-1381988186 for an explanation as to why
# we need this here _even though_ the job we depend on is never skipped.
if: |
always() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
runs-on: ubuntu-latest
steps:
- name: Install Rust