From e7de5bd68abeccd84012e4f8eac4d0061b60c9cf Mon Sep 17 00:00:00 2001 From: Awiteb Date: Mon, 20 May 2024 08:01:21 +0300 Subject: [PATCH] chore: Change the sort of commits --- .forgejo/workflows/cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/cd.yml b/.forgejo/workflows/cd.yml index c343f55..5da5793 100644 --- a/.forgejo/workflows/cd.yml +++ b/.forgejo/workflows/cd.yml @@ -101,7 +101,7 @@ jobs: git config user.name forgejo-actions git config user.email forgejo-actions@noreply.localhost echo 'TAG_CHANGELOG=$(if [[ $(git tag --sort=committerdate | tail -n 1) == *"-rc"* ]]; then git-cliff --strip all $(git tag --sort=committerdate | tail -n 2 | sed ":a; N; $!ba; s/\n/../g") | sed "s/## unreleased.*$//g"; else git-cliff -l --strip all | sed "s/^## \[.*$//g";fi)' | sed "s/\"/'/g" >> $GITHUB_ENV - if [[ $(git tag --sort=committerdate | tail -n 1) != *'-rc'* ]]; then + if [[ $(git tag --sort=creatordate | tail -n 1) != *'-rc'* ]]; then echo "The latest tag is not a release candidate, updating changelog for $GITHUB_REF_NAME" git-cliff > CHANGELOG.md git add CHANGELOG.md