Skip to content

Commit

Permalink
fix(ci): use head_ref or ref_name for branchName in get environment
Browse files Browse the repository at this point in the history
  • Loading branch information
tuntoja committed Feb 6, 2025
1 parent b9986d6 commit 83c6d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/get-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 83c6d49

Please sign in to comment.