Update package prefix logic for release candidate branches

Include release candidate (rc/*) branches in the condition to assign the "preview" package prefix. This ensures consistent versioning for branches intended for pre-production releases.
This commit is contained in:
Sipke Schoorstra 2025-03-26 16:23:17 +01:00
parent 06b9907d85
commit 0e6fdc7e0d

View file

@ -31,7 +31,7 @@ jobs:
PACKAGE_PREFIX=$(echo $BRANCH_NAME | rev | cut -d/ -f1 | rev | tr '_' '-')
# If the branch name is main, use the preview version. Otherwise, use the branch name as the version prefix.
if [[ "${BRANCH_NAME}" == "main" ]]; then
if [[ "${BRANCH_NAME}" == "main" || "${BRANCH_NAME}" =~ ^rc/ ]]; then
PACKAGE_PREFIX="preview"
fi