Skip to content

Commit

Permalink
fix(plan): fix condition for executing plan step(#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
m4s-b3n authored Nov 9, 2023
1 parent 364df44 commit a65eaae
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ runs:
if: >-
${{
( inputs.plan == 'true' ||
inputs.comment-pull-request == 'true'
( inputs.comment-pull-request == 'true' &&
github.event_name == 'pull_request' )
) &&
steps.list.outputs.stdout != '' }}
run: |
Expand Down Expand Up @@ -254,7 +255,11 @@ runs:
fi
shell: bash
- name: Destroy
if: ${{ inputs.destroy == 'true' && steps.list.outputs.stdout != '' }}
if: >-
${{
inputs.destroy == 'true' &&
steps.list.outputs.stdout != ''
}}
run: |
terramate run \
${{ inputs.terramate-args }} \
Expand Down

0 comments on commit a65eaae

Please sign in to comment.