Avoid error in CI from newlines in commit message (#3302)

This commit is contained in:
Paul Romano 2025-02-13 18:04:04 -06:00 committed by GitHub
parent 78bf4cf145
commit 0ceb49bc5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -107,10 +107,10 @@ jobs:
if [ "${{ github.event_name }}" == "pull_request" ]; then
BRANCH_SHA=$(git rev-list --parents -n 1 HEAD | rev | cut -d" " -f 1 | rev)
fi
COMMIT_MESSAGE=$(git log $BRANCH_SHA -1 --pretty=%B)
COMMIT_MESSAGE=$(git log $BRANCH_SHA -1 --pretty=%B | tr '\n' ' ')
echo ${COMMIT_MESSAGE}
echo "COMMIT_MESSAGE=${COMMIT_MESSAGE}" >> $GITHUB_ENV
- name: Apt dependencies
shell: bash
run: |
@ -170,7 +170,7 @@ jobs:
if: ${{ contains(env.COMMIT_MESSAGE, '[gha-debug]') }}
uses: mxschmitt/action-tmate@v3
timeout-minutes: 10
- name: after_success
shell: bash
run: |