Skip to content

Commit

Permalink
fix(ci): sort tags by version
Browse files Browse the repository at this point in the history
  • Loading branch information
elenaf9 committed Jan 26, 2025
1 parent 19f04c7 commit a2a3ecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ensure-version-bump-and-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ MERGE_BASE=$(git merge-base "$HEAD_SHA" "$PR_BASE") # Find the merge base. This
SRC_DIFF_TO_BASE=$(git diff "$HEAD_SHA".."$MERGE_BASE" --name-status -- "$DIR_TO_CRATE/src" "$DIR_TO_CRATE/Cargo.toml")
CHANGELOG_DIFF=$(git diff "$HEAD_SHA".."$MERGE_BASE" --name-only -- "$DIR_TO_CRATE/CHANGELOG.md")

RELEASED_VERSION=$(git tag | grep "^$CRATE-v" | tail -n1 | grep -Po "\d+\.\d+\.\d+")
RELEASED_VERSION=$(git tag --sort=version:refname | grep "^$CRATE-v" | tail -n1 | grep -Po "\d+\.\d+\.\d+")


# If the source files of this crate weren't touched in this PR, exit early.
Expand Down

0 comments on commit a2a3ecc

Please sign in to comment.