From 629dae0a6fd8907fc2614d8a3341c15c5ada33f9 Mon Sep 17 00:00:00 2001 From: Jo Date: Fri, 7 Jun 2024 13:26:21 -0400 Subject: [PATCH] create release as long no prequisites fail and at least one succeeds --- .github/workflows/deploy-staging.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index f7f455772..81d474780 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -8,6 +8,7 @@ on: push: branches: - main + - create-release-triggers permissions: id-token: write # required for OIDC connectiong to AWS @@ -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