Fix previous tag finding

This commit is contained in:
Pierre Jacquier
2025-02-27 09:15:14 -05:00
parent 439557d831
commit 511ae3a3ef

View File

@ -383,7 +383,7 @@ jobs:
# see https://github.com/actions/checkout/issues/1471
git fetch --prune --unshallow --tags
export TAG="nightly-${VERSION}"
export PREVIOUS_TAG=$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1 --glob="nightly-v[0-9]*"))
export PREVIOUS_TAG=$(git tag --list --sort=-committerdate nightly-v* | head -n2 | tail -n1)
export NOTES=$(./scripts/get-nightly-changelog.sh)
yarn files:set-notes