ci: improve build workflow conditions

This commit is contained in:
Nicolas Giard 2023-04-24 17:26:16 -04:00 committed by GitHub
parent 6b893ce71f
commit 65ee1ae549
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: