fix(ci): changelog-and-release.yml

This commit is contained in:
xilesun 2024-11-06 14:34:25 +08:00
parent abda8f77df
commit 3191a946a8
2 changed files with 2 additions and 1 deletions

View File

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

View File

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