Update snapshot version logic (#341)

There won't be any 3.0.x-snapshot builds.

Signed-off-by: Wouter Born <github@maindrain.net>
pull/342/head
Wouter Born 2021-01-13 10:18:44 +01:00 committed by GitHub
parent cbc78af357
commit 9a0d49faf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ get_released_versions_from_tags() {
}
get_snapshot_versions_from_poms() {
local branch_names="$(git ls-remote --refs --heads "git://github.com/${DISTRO_REPO}.git" | grep -E '.+/heads/(main|master|[0-9]+\.[0-9]+\.x)$' | sed -E 's#.+/heads/(.+)#\1#g')"
local branch_names="$(git ls-remote --refs --heads "git://github.com/${DISTRO_REPO}.git" | grep -E '.+/heads/(main|master|2\.5\.x)$' | sed -E 's#.+/heads/(.+)#\1#g')"
for branch_name in $branch_names; do
curl -sS "https://raw.githubusercontent.com/${DISTRO_REPO}/${branch_name}/pom.xml" | grep -E '^ <version>' | grep 'SNAPSHOT' | sed -E 's#.+<version>(.+)-SNAPSHOT</version>#\1-snapshot#g' || echo ""
done