mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-26 23:24:27 +02:00
fix(ci): use head_ref or ref_name for branchName in get environment
This commit is contained in:
parent
b9986d6478
commit
83c6d49206
2
.github/workflows/get-environment.yml
vendored
2
.github/workflows/get-environment.yml
vendored
@ -252,7 +252,7 @@ jobs:
|
|||||||
let version = '';
|
let version = '';
|
||||||
|
|
||||||
if ('${{ steps.get_stability.outputs.stability }}' === 'testing') {
|
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})$/);
|
const matches = branchName.match(/^(?:release|hotfix)-(\d{8})$/);
|
||||||
if (matches) {
|
if (matches) {
|
||||||
version = matches[1];
|
version = matches[1];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user