Skip to content

Commit c939634

Browse files
authored
fix: Improve changelog escaping in "prepare-release" (#11)
Improve changelog special characters escaping in "prepare-release"
1 parent 208aa16 commit c939634

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

actions/prepare-release/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@ runs:
9393
run: |
9494
echo 'Update the changelog'
9595
if [ ! -f '${{ inputs.changelog_path }}' ]; then touch '${{ inputs.changelog_path }}'; fi
96-
cat <(echo '${{ steps.semantic_release.outputs.new_release_notes }}') <(echo) ${{ inputs.changelog_path }} > /tmp/chlog
96+
97+
cat > /tmp/chlog <<- EOF
98+
${{ steps.semantic_release.outputs.new_release_notes }}
99+
100+
$(cat ${{ inputs.changelog_path }})
101+
EOF
97102
mv /tmp/chlog ${{ inputs.changelog_path }}
98103
- name: Commit back
99104
if: ${{ fromJson(steps.semantic_release.outputs.new_release_published) && fromJson(inputs.commit_back) }}

0 commit comments

Comments
 (0)