We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b331343 commit 7010e26Copy full SHA for 7010e26
.github/workflows/create-release-tag.yml
@@ -27,7 +27,7 @@ jobs:
27
- name: Get latest tag
28
id: get_tag
29
run: |
30
- echo "old_tag_name=$(git ls-remote --tags origin | awk -F'/' '{print $3}' | grep -v '{}' | sort -V | tail -n1)" >> $GITHUB_OUTPUT
+ echo "old_tag_name=$(git for-each-ref --sort=creatordate --format '%(refname)' refs/tags | awk -F'/' '{print $3}' | tail -n1)" >> $GITHUB_OUTPUT
31
- name: print tag
32
id: print_tag
33
0 commit comments