Skip to content

Commit bc653d7

Browse files
committed
Update CircleCI config to support two-digit versions
1 parent 6aa0a97 commit bc653d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ commands:
88
- run:
99
name: Exit build step if should not be deployed
1010
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
1212
echo "Exiting build step for branch which should not be deployed ($CIRCLE_BRANCH)"
1313
circleci step halt
1414
fi
@@ -73,7 +73,7 @@ workflows:
7373
filters:
7474
branches:
7575
only:
76-
- /^[0-9]\.[0-9]$/
76+
- /^[0-9]+\.[0-9]+$/
7777
- build-and-deploy-approval:
7878
type: approval
7979
requires:
@@ -82,7 +82,7 @@ workflows:
8282
filters:
8383
branches:
8484
only:
85-
- /^[0-9]\.[0-9]$/
85+
- /^[0-9]+\.[0-9]+$/
8686
- build-and-deploy:
8787
requires:
8888
- test
@@ -92,4 +92,4 @@ workflows:
9292
branches:
9393
only:
9494
- master
95-
- /^[0-9]\.[0-9]$/
95+
- /^[0-9]+\.[0-9]+$/

0 commit comments

Comments
 (0)