Skip to content

Commit d7ca5f2

Browse files
committed
Fix pre-commit workflow error when writing multiline string
Error message: Error: Unable to process file command 'output' successfully. Error: Invalid format 'index cd0e971..e9a93b2 100644'
1 parent 8e53e86 commit d7ca5f2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/pre-commit-auto-update.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ jobs:
2626
run: |
2727
git diff --color
2828
changes="$(git diff)"
29-
echo "changes=${changes}" >> $GITHUB_OUTPUT
29+
delimiter="$(openssl rand -hex 8)"
30+
echo "changes<<${delimiter}" >> "${GITHUB_OUTPUT}"
31+
echo "${changes}" >> "${GITHUB_OUTPUT}"
32+
echo "${delimiter}" >> "${GITHUB_OUTPUT}"
3033
3134
- name: Create pull request
3235
uses: peter-evans/create-pull-request@v5

0 commit comments

Comments
 (0)