From 6875e6ecaf058217e1c555ae9c82bc488ba1c9e2 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Wed, 19 Feb 2025 16:13:14 +0800 Subject: [PATCH] ci: adjust svu options for v3 --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f2970563..4e82c53c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,14 +53,14 @@ jobs: run: brew install caarlos0/tap/svu - name: Compute next version for release run: | - echo "VERSION_NEXT=`svu --pattern="[0-9]*" --strip-prefix ${{ inputs.bump }}`" | tee -a $GITHUB_ENV - echo "VERSION_NEXT_SUFFIX=`svu --pattern="[0-9]*" --strip-prefix ${{ inputs.bump }}`" | tee -a $GITHUB_ENV + echo "VERSION_NEXT=`svu --tag.pattern="[0-9]*" --tag.prefix '' ${{ inputs.bump }}`" | tee -a $GITHUB_ENV + echo "VERSION_NEXT_SUFFIX=`svu --tag.pattern="[0-9]*" --tag.prefix '' ${{ inputs.bump }}`" | tee -a $GITHUB_ENV - name: Set Versions id: versions run: | - echo "version_current=`svu --pattern="[0-9]*" --strip-prefix current`" >> $GITHUB_OUTPUT + echo "version_current=`svu --tag.pattern="[0-9]*" --tag.prefix '' current`" >> $GITHUB_OUTPUT echo "version_next=${{ env.VERSION_NEXT_SUFFIX }}" >> $GITHUB_OUTPUT - [[ `svu --pattern="[0-9]*" --strip-prefix current` != ${{ env.VERSION_NEXT }} ]] && echo "should_release=true" >> $GITHUB_OUTPUT || echo + [[ `svu --tag.pattern="[0-9]*" --tag.prefix '' current` != ${{ env.VERSION_NEXT }} ]] && echo "should_release=true" >> $GITHUB_OUTPUT || echo release: name: Release