Skip to content

Commit

Permalink
github actions: fix tagging in bootstrap_archives.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonid Pliushch committed Sep 17, 2021
1 parent 33f4b5c commit 4f7e3a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/bootstrap_archives.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
id: get_tag
run: |
new_tag="bootstrap-$(date "+%Y.%m.%d")"
existing_tag_revision=$(git tag | grep "$new_tag" | cut -d- -f3 | cut -dr -f2)
existing_tag_revision=$(git tag | grep "$new_tag" | sort -r | head -n 1 | cut -d- -f3 | cut -dr -f2)
if [ -n "$existing_tag_revision" ]; then
tag_rev=$((existing_tag_revision + 1))
else
Expand Down

0 comments on commit 4f7e3a1

Please sign in to comment.