Skip to content

Commit e6a38dd

Browse files
committed
build: avoid command substitution
1 parent befea9a commit e6a38dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/git_note_amend_message.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,11 @@ jobs:
103103
---
104104
type: amend-message
105105
---
106-
${{ inputs.message }}
107106
EOF
108107
108+
# Append new commit message to Git note file:
109+
printf '%s\n' '${{ inputs.message }}' >> "docs/git-notes/${{ inputs.commit_hash }}.txt"
110+
109111
# Create step summary:
110112
echo "## Note for commit ${{ inputs.commit_hash }}:" >> $GITHUB_STEP_SUMMARY
111113
cat "docs/git-notes/${{ inputs.commit_hash }}.txt" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)