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
parent
cbc78af357
commit
9a0d49faf8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue