Skip to content

Commit

Permalink
chore: Add if condition to the deploy.yml github workflow in order to…
Browse files Browse the repository at this point in the history
… ensure it runs if the client or the api were built.
  • Loading branch information
alepefe committed Dec 3, 2024
1 parent 3fdb89b commit 855c106
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ jobs:
deploy:
name: Deploy Services to Amazon EBS
needs: [ set_environment, build_client, build_api ]
if: >
(needs.build_client.result == 'success' && needs.build_api.result == 'success') ||
(needs.build_client.result == 'success' && needs.build_api.result == 'skipped') ||
(needs.build_client.result == 'skipped' && needs.build_api.result == 'success')
runs-on: ubuntu-latest
environment:
name: ${{ needs.set_environment.outputs.env_name }}
Expand Down

0 comments on commit 855c106

Please sign in to comment.