test showing sha ids of commits in github workflow action

This commit is contained in:
narodnik
2021-03-17 15:10:15 +01:00
parent c57eec7b79
commit ff2067ee3c

View File

@@ -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: