Skip to content

Commit

Permalink
Update CircleCI config to support two-digit versions
Browse files Browse the repository at this point in the history
  • Loading branch information
deliahu committed Nov 5, 2019
1 parent 6aa0a97 commit bc653d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ commands:
- run:
name: Exit build step if should not be deployed
command: |
if ! ([[ "$CIRCLE_BRANCH" =~ ^[0-9]\.[0-9]$ ]] || [[ "$CIRCLE_BRANCH" == "master" ]]); then
if ! ([[ "$CIRCLE_BRANCH" =~ ^[0-9]+\.[0-9]+$ ]] || [[ "$CIRCLE_BRANCH" == "master" ]]); then
echo "Exiting build step for branch which should not be deployed ($CIRCLE_BRANCH)"
circleci step halt
fi
Expand Down Expand Up @@ -73,7 +73,7 @@ workflows:
filters:
branches:
only:
- /^[0-9]\.[0-9]$/
- /^[0-9]+\.[0-9]+$/
- build-and-deploy-approval:
type: approval
requires:
Expand All @@ -82,7 +82,7 @@ workflows:
filters:
branches:
only:
- /^[0-9]\.[0-9]$/
- /^[0-9]+\.[0-9]+$/
- build-and-deploy:
requires:
- test
Expand All @@ -92,4 +92,4 @@ workflows:
branches:
only:
- master
- /^[0-9]\.[0-9]$/
- /^[0-9]+\.[0-9]+$/

0 comments on commit bc653d7

Please sign in to comment.