Skip to content

Commit

Permalink
Do not push multiple tags for DEVEL versions [v5.2.4]
Browse files Browse the repository at this point in the history
  • Loading branch information
ldziedziul committed Oct 26, 2023
1 parent d5b8166 commit 6821a79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/get-tags-to-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

function find_last_matching_version() {
FILTER=$1
git tag | grep -v BETA | grep '^v' | cut -c2- | grep "^$FILTER" | tail -n 1
git tag | grep -v BETA | grep -v DEVEL | grep '^v' | cut -c2- | grep "^$FILTER" | tail -n 1
}

function get_latest_version() {
Expand All @@ -16,7 +16,7 @@ function verlte() {
function get_tags_to_push() {
VERSION_TO_RELEASE=$1

if [[ "$VERSION_TO_RELEASE" =~ .*BETA.* ]]; then
if [[ "$VERSION_TO_RELEASE" =~ .*BETA.*|.*DEVEL.* ]]; then
echo "$VERSION_TO_RELEASE"
return
fi
Expand Down
1 change: 1 addition & 0 deletions .github/scripts/get-tags-to-push_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ assert_tags_to_push "5.1.99" "5.1.99 5.1"
assert_tags_to_push "4.99.0" "4.99.0 4.99 4"
assert_tags_to_push "99.0.0" "99.0.0 99.0 99 latest"
assert_tags_to_push "5.3.0-BETA-1" "5.3.0-BETA-1"
assert_tags_to_push "5.4.0-DEVEL-9" "5.4.0-DEVEL-9"
assert_tags_to_push "5.99.0-BETA-1" "5.99.0-BETA-1"
assert_tags_to_push "99.0.0-BETA-1" "99.0.0-BETA-1"

Expand Down

0 comments on commit 6821a79

Please sign in to comment.