From 75584be02414087f471b911a90ce450c4be25620 Mon Sep 17 00:00:00 2001 From: "jose.pereda" Date: Wed, 30 Oct 2024 17:18:32 +0100 Subject: [PATCH] Address feedback --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9f65e5d5a..730e42964 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ on: options: - RC - GA - version: + rc_version: type: string default: '' description: 'If candidate is RC, set a version like RC1 or RC2, else leave it empty' @@ -57,7 +57,11 @@ jobs: S3_PATH=$PROJECT_VERSION CANDIDATE=${{ github.event.inputs.candidate }} if [[ "$CANDIDATE" == RC ]]; then - PROJECT_VERSION=${PROJECT_VERSION}-${{ github.event.inputs.version }} + RC_VERSION = ${{ github.event.inputs.rc_version }} + if [[ "$RC_VERSION" == "" ]]; then + RC_VERSION = "RC" + fi + PROJECT_VERSION=${PROJECT_VERSION}-${RC_VERSION} S3_PATH=RC/$PROJECT_VERSION fi echo "Releasing.. "$PROJECT_VERSION