Просмотр исходного кода

remove redundant stuff from commit output in github workflow action

narodnik 5 лет назад
Родитель
Сommit
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