Skip to content

Commit

Permalink
Never skip a job unless deploy-app is false
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed May 23, 2024
1 parent 4f895c9 commit 40575eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
needs:
- detect-changes
- deploy-iac
if: needs.detect-changes.outputs.deploy-app == 'true'
if: always() && needs.detect-changes.outputs.deploy-app == 'true'
environment: staging
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
needs:
- detect-changes
- deploy-iac
if: needs.detect-changes.outputs.deploy-app == 'true'
if: always() && needs.detect-changes.outputs.deploy-app == 'true'
environment: staging
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -271,7 +271,7 @@ jobs:
- detect-changes
- deploy-backend
- deploy-frontend
if: needs.detect-changes.outputs.deploy-app == 'true'
if: always() && needs.detect-changes.outputs.deploy-app == 'true'
environment: staging
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 40575eb

Please sign in to comment.