Skip to content

Commit

Permalink
fix conditional env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
acaiado committed Mar 7, 2024
1 parent d9103b8 commit ff0e8c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
deploy: ${{ steps.set-deploy.outputs.DEPLOY }}
environment: ${{ steps.set-deploy.outputs.ENVIRONMENT }}
env:
pr_merged: '${{ github.event_name }}' == 'pull_request' && '${{ github.event.pull_request.merged }}' == 'true'
release_published: '${{ github.event_name }}' == 'release' && '${{ github.event.action }}' == 'published'
pr_merged: ${{ github.event_name == 'pull_request' && github.event.pull_request.merged == 'true' }}
release_published: ${{ github.event_name == 'release' && github.event.action == 'published' }}
steps:
- name: Validate release target branch
if: ${{ github.event_name == 'release' }}
Expand Down

0 comments on commit ff0e8c1

Please sign in to comment.