Skip to content

Commit 4f7e3a1

Browse files
author
Leonid Pliushch
committed
github actions: fix tagging in bootstrap_archives.yml
1 parent 33f4b5c commit 4f7e3a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/bootstrap_archives.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
id: get_tag
5151
run: |
5252
new_tag="bootstrap-$(date "+%Y.%m.%d")"
53-
existing_tag_revision=$(git tag | grep "$new_tag" | cut -d- -f3 | cut -dr -f2)
53+
existing_tag_revision=$(git tag | grep "$new_tag" | sort -r | head -n 1 | cut -d- -f3 | cut -dr -f2)
5454
if [ -n "$existing_tag_revision" ]; then
5555
tag_rev=$((existing_tag_revision + 1))
5656
else

0 commit comments

Comments
 (0)