From 5a733459f4eecc1f37f67512d9e7d8681c5a4241 Mon Sep 17 00:00:00 2001 From: Mutsuha Asada Date: Wed, 23 Oct 2024 09:35:38 +0900 Subject: [PATCH] fix: wrong sed filter against rc number --- .github/workflows/rc.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rc.yml b/.github/workflows/rc.yml index e6fbb47..c0ff9aa 100644 --- a/.github/workflows/rc.yml +++ b/.github/workflows/rc.yml @@ -30,8 +30,8 @@ jobs: if [ -z "$LATEST_TAG" ]; then NEW_TAG="v${{ steps.version.outputs.version }}-rc.1" else - DEV_NUMBER=$(echo $LATEST_TAG | sed -E 's/^.*-dev-([0-9]+)$/\1/') - NEW_TAG="v${{ steps.version.outputs.version }}-rc.$((DEV_NUMBER + 1))" + RC_NUMBER=$(echo $LATEST_TAG | sed -E 's/^.*-rc-([0-9]+)$/\1/') + NEW_TAG="v${{ steps.version.outputs.version }}-rc.$((RC_NUMBER + 1))" fi echo "new_tag=$NEW_TAG" >> $GITHUB_OUTPUT - name: Generate release note