From 65ee1ae549ec05feec841afb408bee085ca9ea64 Mon Sep 17 00:00:00 2001 From: Nicolas Giard Date: Mon, 24 Apr 2023 17:26:16 -0400 Subject: [PATCH] ci: improve build workflow conditions --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5c05852c6..50439194c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,7 +56,7 @@ jobs: steps: - name: Ensure Release Branch if: ${{ github.event.inputs.publish == 'true' && github.ref_name != 'release' }} - uses: actions/github-script@v3 + uses: actions/github-script@v6 with: script: | core.setFailed('Production release must be done from release branch!') @@ -282,7 +282,7 @@ jobs: # ----------------------------------------------------------------- release: name: Make Release - if: ${{ always() }} + if: ${{ always() && jobs.prepare.result == 'success' }} needs: [tests-python, tests-playwright, tests-playwright-legacy, prepare] runs-on: ubuntu-latest env: @@ -419,7 +419,7 @@ jobs: # ----------------------------------------------------------------- sandbox: name: Deploy to Sandbox - if: ${{ always() && github.event.inputs.sandbox == 'true' }} + if: ${{ always() && github.event.inputs.sandbox == 'true' && jobs.release.status == 'success' }} needs: [prepare, release] runs-on: [self-hosted, dev-server] env: