Procházet zdrojové kódy

test showing sha ids of commits in github workflow action

narodnik před 5 roky
rodič
revize
ff2067ee3c
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      .github/workflows/matrix-commit-message.yml

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

@@ -6,8 +6,8 @@ jobs:
     name: Send message via Matrix
     steps:
       - run: |
-          LAST_MSG=$(git --no-pager show -s --format='%h %an: %s' HEAD)
-          echo '::set-output name=COMMIT_MESSAGE::$LAST_MSG'
+          commits=${{ join(github.event.commits.\*.id, ' ') }}
+          echo '::set-output name=COMMIT_MESSAGE::$commits'
         id: commit-message
       - uses: narodnik/matrix-action@main
         with: