소스 검색

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=""
           ALL_MSGS=""
           for i in ${{ join(github.event.commits.*.id, ' ') }}; do
           for i in ${{ join(github.event.commits.*.id, ' ') }}; do
             MSG=$(git --no-pager show -s --format='%h <b>%an</b>: %s' $i)
             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
           done
           echo "::set-output name=COMMIT_MESSAGE::$ALL_MSGS"
           echo "::set-output name=COMMIT_MESSAGE::$ALL_MSGS"
         id: commit-message
         id: commit-message