mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 05:29:26 +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 }}
|
PRO_PLUGIN_REPOS: ${{ steps.get-info.outputs.proRepos }}
|
||||||
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||||
- name: Commit and push
|
- name: Commit and push
|
||||||
|
if: ${{ steps.get-info.outputs.version == 'beta' }}
|
||||||
run: |
|
run: |
|
||||||
git pull origin main
|
git pull origin main
|
||||||
git add .
|
git add .
|
||||||
|
@ -372,7 +372,7 @@ async function getVersion() {
|
|||||||
if (!from || !to) {
|
if (!from || !to) {
|
||||||
// git tag -l --sort=version:refname | grep "v*-ver" | tail -2
|
// git tag -l --sort=version:refname | grep "v*-ver" | tail -2
|
||||||
const tagPattern = `v*-${ver}`;
|
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,
|
shell: true,
|
||||||
});
|
});
|
||||||
[from, to] = tags.split('\n');
|
[from, to] = tags.split('\n');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user