Skip to content

Commit c1ea6bf

Browse files
committed
GH-2288 - Do not process upgrades to preview versions.
1 parent a88c311 commit c1ea6bf

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Diff for: etc/update-dependencies.sh

+10-4
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ while IFS= read -r line; do
6060

6161
if [[ $line =~ \$\{([[:alnum:]-]+)\.version\}[[:space:]\.]*([0-9]+\.[0-9]+\.[0-9]+.*)[[:space:]]\-\>[[:space:]]([0-9]+\.[0-9]+\.[0-9]+.*) ]]; then
6262

63+
property_name="${BASH_REMATCH[1]}"
64+
old_version="${BASH_REMATCH[2]}"
65+
new_version="${BASH_REMATCH[3]}"
66+
67+
# Skip if new version matches pattern (case insensitive)
68+
if echo "$new_version" | grep -qiE "(-m[0-9]|-rc[0-9]|alpha|beta)"; then
69+
echo "Skipping milestone/alpha/beta version: $new_version"
70+
continue
71+
fi
72+
6373
# On first match
6474
if [ $matches_found -eq 0 ]; then
6575

@@ -86,10 +96,6 @@ while IFS= read -r line; do
8696
matches_found=$((matches_found + 1))
8797

8898
echo "Processing line: $line"
89-
90-
property_name="${BASH_REMATCH[1]}"
91-
old_version="${BASH_REMATCH[2]}"
92-
new_version="${BASH_REMATCH[3]}"
9399

94100
# Look up the mapping directly
95101
mapping=$(grep "^${property_name}=" "$mapping_file" | cut -d '=' -f2)

0 commit comments

Comments
 (0)