Skip to content

Commit

Permalink
fix: the "needs" doesn't run if the previous wasn't successful
Browse files Browse the repository at this point in the history
  • Loading branch information
naftis authored Nov 19, 2024
1 parent fc25e19 commit 50398be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ jobs:
reset:
needs: deploy
if: ${{ inputs.reset == 'true' && needs.deploy.outcome == 'success' }}
if: ${{ inputs.reset == 'true' }}
uses: ./.github/workflows/clear-environment.yml
with:
environment: ${{ inputs.stack }}
Expand All @@ -312,7 +312,7 @@ jobs:

seed-data:
needs: reset
if: ${{ inputs.reset == 'true' && needs.reset.outcome == 'success' }}
if: ${{ inputs.reset == 'true' }}
uses: ./.github/workflows/seed-data.yml
with:
environment: ${{ inputs.stack }}
Expand Down

0 comments on commit 50398be

Please sign in to comment.