This commit is contained in:
Benoit Marty
2026-02-06 16:32:59 +01:00
parent 6fc8e4357d
commit e1c37d24aa

View File

@@ -99,12 +99,12 @@ printf "\n======================================================================
versionsFile="./plugins/src/main/kotlin/Versions.kt"
# The version of the release must match the date of next monday, where the release is supposed to go live
# The command below gets the date of next monday
newtMondayDateCommand="date -v +1w -v -monday"
nextMondayDateCommand="date -v +1w -v -monday"
# Get release year on 2 digits
versionYearCandidate=$(${newtMondayDateCommand} +%y)
versionYearCandidate=$(${nextMondayDateCommand} +%y)
currentVersionMonth=$(grep "val versionMonth" ${versionsFile} | cut -d " " -f6)
# Get release month on 2 digits
versionMonthCandidate=$(${newtMondayDateCommand} +%m)
versionMonthCandidate=$(${nextMondayDateCommand} +%m)
versionMonthCandidateNoLeadingZero=${versionMonthCandidate/#0/}
currentVersionReleaseNumber=$(grep "val versionReleaseNumber" ${versionsFile} | cut -d " " -f6)
# if the release month is the same as the current version, we increment the release number, else we reset it to 0