From 1b87953483e24db64a28e8b1e54a53318840ec18 Mon Sep 17 00:00:00 2001 From: Luca Palmieri <20745048+LukeMathWalker@users.noreply.github.com> Date: Thu, 2 Feb 2023 12:26:21 +0000 Subject: [PATCH] Fix trigger for following jobs. (#2282) --- .github/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0991b837b5..13a54247ae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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