Skip to content

Commit

Permalink
Sort tags when deleting oldest
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaski committed Jan 15, 2025
1 parent 3985a54 commit 6e8f186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3101,7 +3101,7 @@ jobs:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
while [ "$(git tag | wc -l)" -ge "${{env.max_releases}}" ]; do
oldest_tag=$(git tag | head -1)
oldest_tag=$(git tag | sort -V | head -1)
gh release delete "${oldest_tag}"
git tag -d "${oldest_tag}"
git push --delete origin "${oldest_tag}"
Expand Down

0 comments on commit 6e8f186

Please sign in to comment.