File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 5
5
#
6
6
# valid examples:
7
7
#
8
+ # introductionVersion:"%%NEXT%%"
8
9
# introductionVersion:"pre5.0"
9
10
# introductionVersion:"5.0"
10
11
# introductionVersion:"4.9.3-rc5"
@@ -24,7 +25,7 @@ ERROR=0
24
25
25
26
SEMVER_REGEX=" ([0-9]|[1-9][0-9]*)(\.([0-9]|[1-9][0-9]*)){1,2}(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?"
26
27
27
- QUERY_INTRO=$( git grep -n " env:" -- ' *.go' | grep -v -P " introductionVersion:\" ($SEMVER_REGEX |(pre5\.0))\" " | grep -v " _test.go" | grep -v " vendor/" )
28
+ QUERY_INTRO=$( git grep -n " env:" -- ' *.go' | grep -v -P " introductionVersion:\" ($SEMVER_REGEX |(pre5\.0)|(%%NEXT%%) )\" " | grep -v " _test.go" | grep -v " vendor/" )
28
29
RESULTS_INTRO=$( echo " ${QUERY_INTRO} " | wc -l)
29
30
if [ " ${QUERY_INTRO} " != " " ] && [ " ${RESULTS_INTRO} " -gt 0 ]; then
30
31
echo " ==============================================================================================="
You can’t perform that action at this time.
0 commit comments