Skip to content

Commit

Permalink
Switch to portable pseudorandom delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescurtin committed Oct 14, 2024
1 parent 2370eb2 commit b3cba30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/run_isort
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ exit_code=$?
# output to be on a single line, so a (random) delimiter needs to be used
# so that the output is parsed properly.
# See https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
DELIMITER=$(echo $RANDOM | md5sum | head -c 20)
DELIMITER=$(
tr -dc A-Za-z0-9 < /dev/urandom | head -c 20
echo
)
{
echo "isort-output<<${DELIMITER}"
echo "${isort_result}"
Expand Down

0 comments on commit b3cba30

Please sign in to comment.