diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 353fc449c87..7791e71a6ec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,7 +101,7 @@ jobs: - name: Set commit message env var run: | # get the sha of the last branch commit - if [ ${{ github.event_name }} == "pull_request" ] ; then + if [ "${{ github.event_name }}" == "pull_request" ] ; then BRANCH_SHA=$(git rev-list --parents -n 1 HEAD | rev | cut -d" " -f 1 | rev) fi BRANCH_SHA=HEAD