Преглед изворни кода

remove redundant stuff from commit output in github workflow action

narodnik пре 5 година
родитељ
комит
d41ea89d90
1 измењених фајлова са 1 додато и 3 уклоњено
  1. 1 3
      .github/workflows/matrix-commit-message.yml

+ 1 - 3
.github/workflows/matrix-commit-message.yml

@@ -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