fix(ci): use head_ref or ref_name for branchName in get environment

This commit is contained in:
tuntoja 2025-02-06 16:21:37 +01:00
parent b9986d6478
commit 83c6d49206

View File

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