From 32dea35bb58b4a61c7d2be863b8faa6e8bc229b6 Mon Sep 17 00:00:00 2001 From: Jay Qi <2721979+jayqi@users.noreply.github.com> Date: Sat, 15 Feb 2025 01:15:15 -0500 Subject: [PATCH] Change sample workflow to use heredoc to more safely dump markdown to file --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index eadeed1..00d3a21 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,9 @@ Here is a sample workflow usage: pattern: 'v2.0.0' - name: Write output to file run: | - printf '${{ steps.extract-changelog.outputs.markdown }}' > CHANGELOG-extracted.txt + cat <<'EOF' > CHANGELOG-extracted.txt + ${{ steps.extract-changelog.outputs.markdown }} + EOF - uses: actions/upload-artifact@v3 with: name: changelog