diff --git a/.github/workflows/build-images-from-branch.yml b/.github/workflows/build-images-from-branch.yml index e571766f9a..23c0f11052 100644 --- a/.github/workflows/build-images-from-branch.yml +++ b/.github/workflows/build-images-from-branch.yml @@ -43,7 +43,7 @@ jobs: if [ "${{ github.event_name }}" == 'push' ]; then BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} elif [ "${{ github.event_name }}" == 'pull_request' ]; then - BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} + BRANCH=${{ github.event.pull_request.head.ref }} else BRANCH=${{ inputs.branch_name }} fi