diff --git a/.github/workflows/premerge.yml b/.github/workflows/premerge.yml index a7329beb54..f9ebcf6542 100644 --- a/.github/workflows/premerge.yml +++ b/.github/workflows/premerge.yml @@ -41,7 +41,7 @@ jobs: - name: Define BRANCH, COMMIT and G_ACCOUNT in environment run: | echo "G_ACCOUNT=${GITHUB_REPOSITORY_OWNER,,}" >> $GITHUB_ENV - if [[ -z ${{ env.BRANCH }} ]]; then + if [[ -z "${{ env.BRANCH }}" ]]; then echo "BRANCH=${GITHUB_HEAD_REF}" >> $GITHUB_ENV echo "COMMIT=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV else