Skip to content

Commit 6aed8cb

Browse files
Fix for setting multiline outputs
Current way doesn't provide a proper handling. Creates errors like: ``` Error: Unable to process file command 'output' successfully. Error: Invalid format 'M README.md' ``` According to https://github.com/orgs/community/discussions/24952 this should fix the issue.
1 parent ed5e868 commit 6aed8cb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

entrypoint.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,12 @@ elif [[ -n ${FILES_CHANGED} ]]; then
8585
fi
8686

8787
# Finish
88-
echo "files_changed=${FILES_CHANGED}" >>"$GITHUB_OUTPUT"
89-
echo "branch_name=${BRANCH}" >>"$GITHUB_OUTPUT"
88+
{
89+
echo "files_changed<<EOF"
90+
echo "${FILES_CHANGED}"
91+
echo "EOF"
92+
echo "branch_name=${BRANCH}"
93+
} >> "$GITHUB_OUTPUT"
9094
if [[ ${RET_CODE} != "0" ]]; then
9195
echo -e "\n[ERROR] Check log for errors."
9296
exit 1

0 commit comments

Comments
 (0)