From cda4cdf66c0b472008ac0acde08c2c1dbf9fc871 Mon Sep 17 00:00:00 2001 From: "j.spijker@ultimaker.com" Date: Fri, 8 Jul 2022 15:15:26 +0200 Subject: [PATCH] Make release branch detection generic Contributes to CURA-9365 --- .github/workflows/conan-recipe-version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/conan-recipe-version.yml b/.github/workflows/conan-recipe-version.yml index dd30e8807a..d698a61718 100644 --- a/.github/workflows/conan-recipe-version.yml +++ b/.github/workflows/conan-recipe-version.yml @@ -70,7 +70,7 @@ jobs: echo ${{ github.repository_owner }} | awk '{print "::set-output name=user::"tolower($0)}' echo '::set-output name=channel::testing' echo '::set-output name=version::${{ steps.git-tool.outputs.Major }}.${{ steps.git-tool.outputs.Minor }}.${{ steps.git-tool.outputs.Patch }}-${{ steps.git-tool.outputs.PreReleaseLabel }}+${{ steps.git-tool.outputs.BuildMetaData }}' - elif [ "${{ github.ref_name == '5.1' }}" = "true" ]; then + elif [ "${{ github.ref_name == '${{ steps.git-tool.outputs.Major }}.${{ steps.git-tool.outputs.Minor }} }}" = "true" ]; then # commits on release branches are beta's and are considered stable # name/major.minor.patch-beta+build@ultimaker/stable # FIXME: For release branches: maybe rename the branch to release/**