ci: update deploy-staging job dependencies and conditions
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user