File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ commands:
8
8
- run :
9
9
name : Exit build step if should not be deployed
10
10
command : |
11
- if ! ([[ "$CIRCLE_BRANCH" =~ ^[0-9]\.[0-9]$ ]] || [[ "$CIRCLE_BRANCH" == "master" ]]); then
11
+ if ! ([[ "$CIRCLE_BRANCH" =~ ^[0-9]+ \.[0-9]+ $ ]] || [[ "$CIRCLE_BRANCH" == "master" ]]); then
12
12
echo "Exiting build step for branch which should not be deployed ($CIRCLE_BRANCH)"
13
13
circleci step halt
14
14
fi
@@ -73,7 +73,7 @@ workflows:
73
73
filters :
74
74
branches :
75
75
only :
76
- - /^[0-9]\.[0-9]$/
76
+ - /^[0-9]+ \.[0-9]+ $/
77
77
- build-and-deploy-approval :
78
78
type : approval
79
79
requires :
@@ -82,7 +82,7 @@ workflows:
82
82
filters :
83
83
branches :
84
84
only :
85
- - /^[0-9]\.[0-9]$/
85
+ - /^[0-9]+ \.[0-9]+ $/
86
86
- build-and-deploy :
87
87
requires :
88
88
- test
@@ -92,4 +92,4 @@ workflows:
92
92
branches :
93
93
only :
94
94
- master
95
- - /^[0-9]\.[0-9]$/
95
+ - /^[0-9]+ \.[0-9]+ $/
You can’t perform that action at this time.
0 commit comments