mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-01 19:58:15 +08:00
fix(ci): changelog-and-release.yml
This commit is contained in:
parent
abda8f77df
commit
3191a946a8
1
.github/workflows/changelog-and-release.yml
vendored
1
.github/workflows/changelog-and-release.yml
vendored
@ -88,6 +88,7 @@ jobs:
|
||||
PRO_PLUGIN_REPOS: ${{ steps.get-info.outputs.proRepos }}
|
||||
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||
- name: Commit and push
|
||||
if: ${{ steps.get-info.outputs.version == 'beta' }}
|
||||
run: |
|
||||
git pull origin main
|
||||
git add .
|
||||
|
@ -372,7 +372,7 @@ async function getVersion() {
|
||||
if (!from || !to) {
|
||||
// git tag -l --sort=version:refname | grep "v*-ver" | tail -2
|
||||
const tagPattern = `v*-${ver}`;
|
||||
const { stdout: tags } = await execa(`git tag -l --sort=version:refname | grep "${tagPattern}" | tail -2`, {
|
||||
const { stdout: tags } = await execa(`git tag -l --sort=creatordate | grep "${tagPattern}" | tail -2`, {
|
||||
shell: true,
|
||||
});
|
||||
[from, to] = tags.split('\n');
|
||||
|
Loading…
Reference in New Issue
Block a user