Skip to content

Commit

Permalink
Adding back in failure steps.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsommardahl committed Jan 22, 2025
1 parent 09d459a commit 4394dd2
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,18 @@ jobs:
reason: decommissioning
secrets: inherit

# failure:
# needs: [cd-backend, cd-frontend, promote]
# # We need some extra logic to prevent cleanup when a CI failure
# if: |
# failure() && (
# needs.cd-backend.result != 'skipped' ||
# needs.cd-frontend.result != 'skipped' ||
# needs.promote.result != 'skipped'
# )
# uses: ./.github/workflows/cleanup.yml
# with:
# ref: ${{ github.sha }}
# env_name: Green
# reason: failure
# secrets: inherit
failure:
needs: [cd-backend, cd-frontend, promote]
# We need some extra logic to prevent cleanup when a CI failure
if: |
failure() && (
needs.cd-backend.result != 'skipped' ||
needs.cd-frontend.result != 'skipped' ||
needs.promote.result != 'skipped'
)
uses: ./.github/workflows/cleanup.yml
with:
ref: ${{ github.sha }}
env_name: Green
reason: failure
secrets: inherit

0 comments on commit 4394dd2

Please sign in to comment.