Skip to content

Commit

Permalink
Re-add verlte
Browse files Browse the repository at this point in the history
  • Loading branch information
ldziedziul committed Oct 16, 2024
1 parent ddb5d70 commit 383272d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/scripts/get-tags-to-push.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/usr/bin/env bash

SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
. "$SCRIPT_DIR/version.functions.sh"

function find_last_matching_version() {
FILTER=$1
git tag | grep -v BETA | grep -v DEVEL | grep '^v' | cut -c2- | grep "^$FILTER" | tail -n 1
Expand All @@ -12,6 +9,10 @@ function get_latest_version() {
find_last_matching_version ""
}

function verlte() {
[ "$1" = "$(echo -e "$1\n$2" | sort -V | head -n1)" ]
}

function get_version_only_tags_to_push() {
local VERSION_TO_RELEASE=$1
local IS_LATEST_LTS=$2
Expand Down

0 comments on commit 383272d

Please sign in to comment.