From 14ab148e0a12f47528d653bc084482664de7b863 Mon Sep 17 00:00:00 2001 From: Riku Rouvila Date: Tue, 29 Oct 2024 10:48:32 +0200 Subject: [PATCH] fix(build): fix how base branch is resolved for PRs --- .github/workflows/build-images-from-branch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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