Skip to content

Commit

Permalink
Remove git fetch tags in get_last_release
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-gladkii committed Mar 6, 2024
1 parent 881d7bd commit 001b34f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tools/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@ make_version() {
get_last_release() {
GIT_SHA="$1"

git config --global --add safe.directory /github/workspace

git fetch --tags
git fetch --prune --unshallow || true

LAST_RELEASE=$(git tag --list --merged "$GIT_SHA" --sort=-v:refname | grep -E "^[0-9]+\.[0-9]+\.[0-9]+$" | head -n 1)

echo "$LAST_RELEASE"
Expand Down

0 comments on commit 001b34f

Please sign in to comment.