ci: Set Commit Message update (#24568)

## Description
 - This PR sets the commit message for Cypress dashboard display
This commit is contained in:
Aishwarya-U-R 2023-06-17 01:07:28 +05:30 committed by GitHub
parent 959fdce6ac
commit ce669e242c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -276,9 +276,9 @@ jobs:
- name: Set Commit Message
run: |
if [[ ${{ inputs.pr }} -ne 0 ]]; then
echo COMMIT_INFO_MESSAGE=Run from PR# ${{ inputs.pr }} on commit $(git show -s --pretty=%H | cut -c 1-7) >> $GITHUB_ENV
echo COMMIT_INFO_MESSAGE="Run from PR# ${{ inputs.pr }} on commit $(git show -s --pretty=%H | cut -c 1-7)" >> $GITHUB_ENV
else
echo COMMIT_INFO_MESSAGE= ${{ github.event.pull_request.title }} >> $GITHUB_ENV
echo COMMIT_INFO_MESSAGE="${{ github.event.pull_request.title }}" >> $GITHUB_ENV
fi
- name: Run the cypress test