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

try iterating sha hashes in github workflow

narodnik 5 лет назад
Родитель
Сommit
9a32e7e85e
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      .github/workflows/matrix-commit-message.yml

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

@@ -6,8 +6,9 @@ jobs:
     name: Send message via Matrix
     steps:
       - run: |
-          commits=${{ join(github.event.commits.*.id, ' ') }}
-          echo '::set-output name=COMMIT_MESSAGE::$commits'
+          for i in ${{ join(github.event.commits.*.id, ' ') }}; do
+            echo '::set-output name=COMMIT_MESSAGE::$i'
+          done
         id: commit-message
       - uses: narodnik/matrix-action@main
         with: