Skip to content

Commit

Permalink
fix: release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
chenos committed Aug 25, 2024
1 parent 1eb8794 commit c940da4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/manual-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ concurrency:

on:
workflow_dispatch:
inputs:
is_feat:
description: 'is feat'
type: boolean

jobs:
push-commit:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c940da4

Please sign in to comment.