Skip to content

Commit

Permalink
Replace deprecated set-output command (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
gene1wood committed Dec 2, 2022
1 parent 47f93ef commit 4beb7c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ exit_code=$?

echo "$output"

# See https://github.hscsec.cnmunity/t5/GitHub-Actions/set-output-Truncates-Multiline-Strings/td-p/37870
# See https://github.com/community/community/discussions/26288
output="${output//'%'/'%25'}"
output="${output//$'\n'/'%0A'}"
output="${output//$'\r'/'%0D'}"
echo "::set-output name=output::$output"
echo "output=$output" >> $GITHUB_OUTPUT

exit $exit_code

0 comments on commit 4beb7c0

Please sign in to comment.