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:
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

View File

@ -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))