Skip to content

Commit

Permalink
Fix quote escape bug in products pipeline (#871)
Browse files Browse the repository at this point in the history
* use single quote instead of double quotes

* fixing possible issue with single quotes

---------

Co-authored-by: tjololo <[email protected]>
  • Loading branch information
tjololo and tjololo authored Aug 26, 2024
1 parent d2ee0d1 commit 41314b5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions actions/terraform/plan/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ runs:
id: action_summary
shell: bash
if: always()
env:
VALIDATE_OUTPUT: ${{ steps.validate.outputs.stdout }}
PLAN_OUTPUT: ${{ steps.plan.outputs.stdout }}
working-directory: ${{ inputs.working_directory }}
run: |
echo "#"" Terraform ${{ inputs.oidc_type }} ${{ inputs.oidc_value }}" >> $GITHUB_STEP_SUMMARY
Expand All @@ -155,7 +158,7 @@ runs:
echo "<details><summary>Validation Output</summary>" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`\n" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.validate.outputs.stdout }}" >> $GITHUB_STEP_SUMMARY
echo "${VALIDATE_OUTPUT}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "</details>" >> $GITHUB_STEP_SUMMARY
Expand All @@ -166,7 +169,7 @@ runs:
echo "<details><summary>Show Plan</summary>" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`\n" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.plan.outputs.stdout }}" >> $GITHUB_STEP_SUMMARY
echo "${PLAN_OUTPUT}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "</details>" >> $GITHUB_STEP_SUMMARY
Expand Down

0 comments on commit 41314b5

Please sign in to comment.