mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:06:06 +00:00
fix: release ci
This commit is contained in:
parent
1eb87946c3
commit
c940da4527
6
.github/workflows/manual-release.yml
vendored
6
.github/workflows/manual-release.yml
vendored
@ -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
|
||||||
|
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user