From c96044e3f34c861fb5b6803527975180d0ddb1d6 Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Tue, 12 Dec 2023 21:54:09 -0500 Subject: [PATCH] build: define intermediate environment variable --- .../workflows/scaffold_pkg_via_pull_request_assignment.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scaffold_pkg_via_pull_request_assignment.yml b/.github/workflows/scaffold_pkg_via_pull_request_assignment.yml index 4c36e1faf4d..78ca48e988f 100644 --- a/.github/workflows/scaffold_pkg_via_pull_request_assignment.yml +++ b/.github/workflows/scaffold_pkg_via_pull_request_assignment.yml @@ -232,9 +232,11 @@ jobs: - name: 'Checkout the pull request branch' # Pin action to full length commit SHA uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + env: + HEAD_REF: ${{ github.event.pull_request.head.ref }} with: # Refers to the branch name of the pull request: - ref: "${{ github.event.pull_request.head.ref }}" + ref: ${{ env.HEAD_REF }} # Refers to the repository name of the pull request: repository: ${{ github.event.pull_request.head.repo.full_name }}