From 95b63eb8106c6bd3b4998da5dc65feeb338f1ea7 Mon Sep 17 00:00:00 2001 From: Paul Oureib Date: Mon, 28 Jul 2025 15:17:56 +0200 Subject: [PATCH] get version as 20250600 --- .github/workflows/get-environment.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/get-environment.yml b/.github/workflows/get-environment.yml index 3a6fc06c5..b7ef8f6bc 100644 --- a/.github/workflows/get-environment.yml +++ b/.github/workflows/get-environment.yml @@ -316,13 +316,7 @@ jobs: console.log(`Stable version based on .version.plugins file will be: ${version}`) } else if ('${{ steps.get_stability.outputs.stability }}' === 'testing') { - const branchName = "${{ github.head_ref || github.ref_name }}"; - const matches = branchName.match(/^(?:release|hotfix)-(\d{8})$/); - if (matches) { - version = matches[1]; - } else { - throw new Error('invalid version'); - } + version = "20250600" } else if ('${{ steps.get_stability.outputs.stability }}' === 'unstable') { const currentDate = new Date(); version = `${currentDate.getFullYear()}${("0" + (currentDate.getMonth() + 1)).slice(-2)}${String(currentDate.getDate()).padStart(2, '0')}`;