Skip to content

Commit

Permalink
Use git's version:refname sorting (#168)
Browse files Browse the repository at this point in the history
* Use git's version:refname sorting

* debug

* revert
  • Loading branch information
jaimergp authored Jul 15, 2024
1 parent 14ce0f5 commit 69e42b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/make_bundle_conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ jobs:
run: |
set -x
ref=$(git log -1 --format='%H')
last_tag=$(git tag --list --points-at "$ref" --sort creatordate | tail -1)
for tag in $(git tag --list --points-at "$ref" --sort creatordate); do
last_tag=$(git -c 'versionsort.suffix=rc' tag -l --points-at "$ref" --sort version:refname | tail -1)
for tag in $(git -c 'versionsort.suffix=rc' tag -l --points-at "$ref" --sort version:refname); do
if [[ $tag != $last_tag ]]; then
git tag --delete $tag
fi
Expand Down Expand Up @@ -289,8 +289,8 @@ jobs:
run: |
set -x
ref=$(git log -1 --format='%H')
last_tag=$(git tag --list --points-at "$ref" --sort creatordate | tail -1)
for tag in $(git tag --list --points-at "$ref" --sort creatordate); do
last_tag=$(git -c 'versionsort.suffix=rc' tag -l --points-at "$ref" --sort version:refname | tail -1)
for tag in $(git -c 'versionsort.suffix=rc' tag -l --points-at "$ref" --sort version:refname); do
if [[ $tag != $last_tag ]]; then
git tag --delete $tag
fi
Expand Down

0 comments on commit 69e42b8

Please sign in to comment.