remove redundant stuff from commit output in github workflow action

This commit is contained in:
narodnik
2021-03-17 15:58:46 +01:00
parent 2f071c4da8
commit d41ea89d90

View File

@@ -13,9 +13,7 @@ jobs:
ALL_MSGS=""
for i in ${{ join(github.event.commits.*.id, ' ') }}; do
MSG=$(git --no-pager show -s --format='%h <b>%an</b>: %s' $i)
# From this link the newline character is: %0A
# https://github.community/t/set-output-truncates-multiline-strings/16852
ALL_MSGS="$ALL_MSGS$MSG<br>%0A"
ALL_MSGS="$ALL_MSGS$MSG<br>"
done
echo "::set-output name=COMMIT_MESSAGE::$ALL_MSGS"
id: commit-message