get version as 20250600

This commit is contained in:
Paul Oureib 2025-07-28 15:17:56 +02:00
parent 34a756d4f5
commit 95b63eb810
No known key found for this signature in database
GPG Key ID: 3FF3CC7D5F7CC8CA

View File

@ -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')}`;