File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,16 @@ while IFS= read -r line; do
60
60
61
61
if [[ $line =~ \$\{ ([[:alnum:]-]+)\. version\} [[:space:]\. ]* ([0-9]+\. [0-9]+\. [0-9]+.* )[[:space:]]\-\> [[:space:]]([0-9]+\. [0-9]+\. [0-9]+.* ) ]]; then
62
62
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
+
63
73
# On first match
64
74
if [ $matches_found -eq 0 ]; then
65
75
@@ -86,10 +96,6 @@ while IFS= read -r line; do
86
96
matches_found=$(( matches_found + 1 ))
87
97
88
98
echo " Processing line: $line "
89
-
90
- property_name=" ${BASH_REMATCH[1]} "
91
- old_version=" ${BASH_REMATCH[2]} "
92
- new_version=" ${BASH_REMATCH[3]} "
93
99
94
100
# Look up the mapping directly
95
101
mapping=$( grep " ^${property_name} =" " $mapping_file " | cut -d ' =' -f2)
You can’t perform that action at this time.
0 commit comments