ci: update deploy-staging job dependencies and conditions

This commit is contained in:
2025-11-02 23:25:31 +01:00
parent 7f3ce7f969
commit ff572534e9

View File

@@ -826,8 +826,11 @@ jobs:
# Job 3: Auto-deploy to Staging (only for staging branch) # Job 3: Auto-deploy to Staging (only for staging branch)
deploy-staging: deploy-staging:
name: Auto-deploy to Staging name: Auto-deploy to Staging
needs: [changes] needs: [changes, build, runtime-base]
if: github.ref_name == 'staging' || github.head_ref == 'staging' || (github.ref_name == '' && contains(github.ref, 'staging')) if: |
(github.ref_name == 'staging' || github.head_ref == 'staging' || (github.ref_name == '' && contains(github.ref, 'staging'))) &&
(needs.build.result == 'success' || needs.build.result == 'skipped') &&
(needs.runtime-base.result == 'success' || needs.runtime-base.result == 'skipped')
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment: environment:
name: staging name: staging