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];