From c940da4527c84cbcd7d371e557940b73d6aca8a0 Mon Sep 17 00:00:00 2001 From: chenos Date: Sun, 25 Aug 2024 22:07:44 +0800 Subject: [PATCH] fix: release ci --- .github/workflows/manual-release.yml | 6 +++++- release.sh | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/manual-release.yml b/.github/workflows/manual-release.yml index 34abcb336f..2c5378b214 100644 --- a/.github/workflows/manual-release.yml +++ b/.github/workflows/manual-release.yml @@ -6,6 +6,10 @@ concurrency: on: workflow_dispatch: + inputs: + is_feat: + description: 'is feat' + type: boolean jobs: push-commit: @@ -78,7 +82,7 @@ jobs: echo "packages/pro-plugins/" >> .git/info/exclude bash release.sh $IS_FEAT env: - IS_FEAT: false + IS_FEAT: ${{ inputs.is_feat && '--is-feat' || '' }} - name: push pro plugins continue-on-error: true uses: ad-m/github-push-action@master diff --git a/release.sh b/release.sh index 17640555a6..b7017a25da 100755 --- a/release.sh +++ b/release.sh @@ -3,7 +3,7 @@ IFS='.-' read -r major minor patch label <<< "$current_version" if [ "$1" == '--is-feat' ]; then new_minor=$((minor + 1)) - new_version="$major.$new_minor.0-$label" + new_version="$major.$new_minor.0-beta" echo $new_version; else new_patch=$((patch + 1))