From 0e6fdc7e0debe64f0759af115f985d1c02c5dd2a Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Wed, 26 Mar 2025 16:23:17 +0100 Subject: [PATCH] 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. --- .github/workflows/packages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index c2532d0bd..9323c4eb5 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -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