From 0ceb49bc5cb9c7fa8853db6822f82ff73a909a7e Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Thu, 13 Feb 2025 18:04:04 -0600 Subject: [PATCH] Avoid error in CI from newlines in commit message (#3302) --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e69a13db90..de99bbbe20 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: |