Skip to content

Commit

Permalink
create release as long no prequisites fail and at least one succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbass committed Jun 7, 2024
1 parent f644721 commit 629dae0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
push:
branches:
- main
- create-release-triggers

permissions:
id-token: write # required for OIDC connectiong to AWS
Expand Down Expand Up @@ -271,13 +272,13 @@ jobs:
create-release:
needs:
- detect-changes
- deploy-backend
- deploy-frontend
- deploy-iac
if: |
always() &&
needs.deploy-backend.result == 'success' &&
needs.deploy-frontend.result == 'success'
contains(join(needs.*.result, ','), 'success') &&
! contains(join(needs.*.result, ','), 'failure')
environment: production
runs-on: ubuntu-latest

Expand Down

0 comments on commit 629dae0

Please sign in to comment.