chore: Change the sort of commits

This commit is contained in:
Awiteb 2024-05-20 08:01:21 +03:00
parent 78df143438
commit e7de5bd68a
Signed by: awiteb
GPG key ID: 3F6B55640AA6682F

View file

@ -101,7 +101,7 @@ jobs:
git config user.name forgejo-actions git config user.name forgejo-actions
git config user.email forgejo-actions@noreply.localhost 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 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" echo "The latest tag is not a release candidate, updating changelog for $GITHUB_REF_NAME"
git-cliff > CHANGELOG.md git-cliff > CHANGELOG.md
git add CHANGELOG.md git add CHANGELOG.md