Skip to content

Commit

Permalink
(fix) Single quote and escape outputs (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebachle committed Apr 25, 2022
1 parent 4d7bb81 commit ce69183
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,26 +169,26 @@ runs:
shell: bash
run: |
if [[ '${{ inputs.require-validate }}' == 'true' ]] && [[ '${{ steps.validate.outputs.validate-outcome }}' == 'failure' ]]; then
echo "${{ steps.validate.outputs.stdout }}"
echo "${{ steps.validate.outputs.stderr }}"
echo '::escapeData::${{ steps.validate.outputs.stdout }}'
echo '::escapeData::${{ steps.validate.outputs.stderr }}'
exit 1
fi
- name: Terraform Plan Status
shell: bash
run: |
if [[ '${{ steps.plan.outputs.plan-outcome }}' == 'failure' ]]; then
echo "${{ steps.plan.outputs.stdout }}"
echo "${{ steps.plan.outputs.stderr }}"
echo '::escapeData::${{ steps.plan.outputs.stdout }}'
echo '::escapeData::${{ steps.plan.outputs.stderr }}'
exit 1
fi
- name: Terraform Format Status
shell: bash
run: |
if [[ '${{ inputs.require-formatting }}' == 'true' ]] && [[ '${{ steps.fmt.outputs.fmt-outcome }}' == 'failure' ]]; then
echo "${{ steps.fmt.outputs.stdout }}"
echo "${{ steps.fmt.outputs.stderr }}"
echo '::escapeData::${{ steps.fmt.outputs.stdout }}'
echo '::escapeData::${{ steps.fmt.outputs.stderr }}'
exit 1
fi
Expand Down

0 comments on commit ce69183

Please sign in to comment.