use heredoc for commit message

This commit is contained in:
David Holdeman 2024-03-24 22:07:39 -05:00 committed by rusefillc
parent 8096c532ec
commit 30deab9636
1 changed files with 4 additions and 1 deletions

View File

@ -125,7 +125,10 @@ jobs:
run: |
export EVENT_NAME="${{github.event_name}}"
export RUN_ATTEMPT="${{github.run_attempt}}"
export COMMIT_MESSAGE="${{github.event.head_commit.message}}"
read -d '' COMMIT_MESSAGE << EOM || true
${{ github.event.head_commit.message }}
EOM
export COMMIT_MESSAGE
echo "matrix=$(bash firmware/bin/generate_matrix.sh)" >> $GITHUB_OUTPUT
build-firmware: