Skip to content

Commit 7010e26

Browse files
authored
Updated the create-release-tag.yaml file to grab the old release tag based on creation date. (#452) (#453)
1 parent b331343 commit 7010e26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/create-release-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Get latest tag
2828
id: get_tag
2929
run: |
30-
echo "old_tag_name=$(git ls-remote --tags origin | awk -F'/' '{print $3}' | grep -v '{}' | sort -V | tail -n1)" >> $GITHUB_OUTPUT
30+
echo "old_tag_name=$(git for-each-ref --sort=creatordate --format '%(refname)' refs/tags | awk -F'/' '{print $3}' | tail -n1)" >> $GITHUB_OUTPUT
3131
- name: print tag
3232
id: print_tag
3333
run: |

0 commit comments

Comments
 (0)