Przeglądaj źródła

try iterating sha hashes in github workflow

narodnik 5 lat temu
rodzic
commit
9a32e7e85e
1 zmienionych plików z 3 dodań i 2 usunięć
  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: