Skip to content

Commit aa33f84

Browse files
committed
ci: Fix CircleCI error applying branch filtering at the workflow level
This commit attempts to fix the following error: Job "build" has filters configured in the job definition. These filters are incompatible with workflows. See Slicer/Slicer#4906 (comment)
1 parent 17091cd commit aa33f84

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Diff for: .circleci/config.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ jobs:
44
working_directory: /usr/src/apidocs
55
docker:
66
- image: python:2.7.13
7-
branches:
8-
only:
9-
- master
107
steps:
118
- checkout
129
- run:
@@ -102,3 +99,12 @@ jobs:
10299
--slicer-repo-tag "${SLICER_REPO_TAG}" \
103100
--status-update-target-url "https://slicer.github.com/${PUBLISH_GITHUB_PROJECT_NAME}"
104101
102+
workflows:
103+
version: 2
104+
build:
105+
jobs:
106+
- build:
107+
filters:
108+
branches:
109+
only: master
110+

0 commit comments

Comments
 (0)