From 83c6d492064763b734851fac573f8fffb78bf489 Mon Sep 17 00:00:00 2001 From: tuntoja Date: Thu, 6 Feb 2025 16:21:37 +0100 Subject: [PATCH] fix(ci): use head_ref or ref_name for branchName in get environment --- .github/workflows/get-environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/get-environment.yml b/.github/workflows/get-environment.yml index 8c9bbcd351..c17f431791 100644 --- a/.github/workflows/get-environment.yml +++ b/.github/workflows/get-environment.yml @@ -252,7 +252,7 @@ jobs: let version = ''; if ('${{ steps.get_stability.outputs.stability }}' === 'testing') { - const branchName = "${{ github.ref_name }}"; + const branchName = "${{ github.head_ref || github.ref_name }}"; const matches = branchName.match(/^(?:release|hotfix)-(\d{8})$/); if (matches) { version = matches[1];