ci: Commit Message syntax fix (#24591)

## Description
- This PR fixes the right syntax to pick up the PR title for push
workflows
This commit is contained in:
Aishwarya-U-R 2023-06-19 00:12:15 +05:30 committed by GitHub
parent 7040aa5d08
commit 9e8658d2a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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