From 9e8658d2a3fde37b1535438d8818ce51dcfbc990 Mon Sep 17 00:00:00 2001 From: Aishwarya-U-R <91450662+Aishwarya-U-R@users.noreply.github.com> Date: Mon, 19 Jun 2023 00:12:15 +0530 Subject: [PATCH] ci: Commit Message syntax fix (#24591) ## Description - This PR fixes the right syntax to pick up the PR title for push workflows --- .github/workflows/ci-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 3bf31dfdf9..e0fc92fad2 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -287,7 +287,7 @@ jobs: if [[ ${{ inputs.pr }} -ne 0 ]]; then echo "COMMIT_INFO_MESSAGE=${{ env.COMMIT_INFO_MESSAGE }}" >> $GITHUB_ENV else - echo "COMMIT_INFO_MESSAGE=${{ env.EVENT_COMMITS }}" | awk -F '\\\\n' '{print $1}' >> $GITHUB_ENV + echo "COMMIT_INFO_MESSAGE=$(echo \"${{ env.EVENT_COMMITS }}\" | awk -F '\\\\n' '{print $1}')" >> $GITHUB_ENV fi - name: Run the cypress test