Skip to content

Commit

Permalink
Fix SNAPSHOT version logic (#437)
Browse files Browse the repository at this point in the history
The POMs got reformatted with openhab/openhab-distro#1627.

Signed-off-by: Wouter Born <[email protected]>
  • Loading branch information
wborn committed Jan 14, 2024
1 parent 140ccee commit 6b548ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper-functions
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ get_released_versions_from_tags() {
get_snapshot_versions_from_poms() {
local branch_names="$(git ls-remote --refs --heads "https://github.com/${DISTRO_REPO}.git" | grep -E '.+/heads/(main)$' | 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 ""
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
}

Expand Down

0 comments on commit 6b548ff

Please sign in to comment.