From 201e65844192e8e3f3ee271fef9b3a0455be7f95 Mon Sep 17 00:00:00 2001 From: ryanformio Date: Thu, 21 Mar 2024 14:41:58 -0500 Subject: [PATCH] Fixes version for other variants --- .github/workflows/{config.yml => ci.yml} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename .github/workflows/{config.yml => ci.yml} (97%) diff --git a/.github/workflows/config.yml b/.github/workflows/ci.yml similarity index 97% rename from .github/workflows/config.yml rename to .github/workflows/ci.yml index 11964850c9..8a88ce017c 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Build / Test / Publish +name: Build, Test, Publish on: pull_request: @@ -130,7 +130,7 @@ jobs: # If the current version includes '-rc.', remove it and everything after # This step ensures that we start with a base version like '3.0.0' even if it was a release candidate - BASE_VERSION=$(echo "$CURRENT_VERSION" | sed 's/-rc.*//') + BASE_VERSION=$(echo "$CURRENT_VERSION" | cut -d'-' -f1) # Construct the new version string NEW_VERSION="${BASE_VERSION}-dev.${PR_NUMBER}.${COMMIT_SHORT_SHA}"