fix: release ci

This commit is contained in:
chenos 2024-08-25 22:07:44 +08:00
parent 1eb87946c3
commit c940da4527
2 changed files with 6 additions and 2 deletions

View File

@ -6,6 +6,10 @@ concurrency:
on: on:
workflow_dispatch: workflow_dispatch:
inputs:
is_feat:
description: 'is feat'
type: boolean
jobs: jobs:
push-commit: push-commit:
@ -78,7 +82,7 @@ jobs:
echo "packages/pro-plugins/" >> .git/info/exclude echo "packages/pro-plugins/" >> .git/info/exclude
bash release.sh $IS_FEAT bash release.sh $IS_FEAT
env: env:
IS_FEAT: false IS_FEAT: ${{ inputs.is_feat && '--is-feat' || '' }}
- name: push pro plugins - name: push pro plugins
continue-on-error: true continue-on-error: true
uses: ad-m/github-push-action@master uses: ad-m/github-push-action@master

View File

@ -3,7 +3,7 @@ IFS='.-' read -r major minor patch label <<< "$current_version"
if [ "$1" == '--is-feat' ]; then if [ "$1" == '--is-feat' ]; then
new_minor=$((minor + 1)) new_minor=$((minor + 1))
new_version="$major.$new_minor.0-$label" new_version="$major.$new_minor.0-beta"
echo $new_version; echo $new_version;
else else
new_patch=$((patch + 1)) new_patch=$((patch + 1))