try breaking if bash command in github workflow fails

This commit is contained in:
narodnik
2021-03-17 15:45:20 +01:00
parent 6d259b40ac
commit 6cb363abf7

View File

@@ -12,7 +12,7 @@ jobs:
- run: |
ALL_MSGS=""
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 || break)
ALL_MSGS="$ALL_MSGS$MSG"$'\n'
done
echo "::set-output name=COMMIT_MESSAGE::$ALL_MSGS"