From f4aceeed132bb944f543a5953f234f2c4f607136 Mon Sep 17 00:00:00 2001 From: Kobi Hikri Date: Tue, 28 Jul 2026 18:56:22 +0300 Subject: [PATCH] ci: read the PR head ref from the environment instead of interpolating it into PowerShell --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1454b8898..bb8caff76 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,6 +42,8 @@ jobs: - name: Summary - Repository checkout shell: pwsh + env: + HEAD_REF: ${{ github.head_ref }} run: | # Get Cmder version . scripts/utils.ps1 @@ -50,7 +52,7 @@ jobs: # Determine branch and PR information $refName = "${{ github.ref_name }}" - $headRef = "${{ github.head_ref }}" + $headRef = $env:HEAD_REF $eventName = "${{ github.event_name }}" $prNumber = $null $actualBranchName = $refName