Skip to content

Commit 5e1dbe0

Browse files
committed
chore: fix CircleCI filtering to release only tagged commits
See https://discuss.circleci.com/t/workflow-job-with-tag-filter-being-run-for-every-commit/20762/4 for more details (short answer: CircleCI filters are ORed instead of ANDed since 2.0, also, all required jobs needs to accepts all tags).
1 parent 2b144e1 commit 5e1dbe0

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.circleci/config.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,22 +102,34 @@ workflows:
102102
version: 2
103103
build:
104104
jobs:
105-
- format
106-
- test-2-11
105+
- format:
106+
filters:
107+
tags:
108+
only: /.*/
109+
- test-2-11:
110+
filters:
111+
tags:
112+
only: /.*/
107113
- test-2-12:
108114
requires:
109115
- test-2-11
116+
filters:
117+
tags:
118+
only: /.*/
110119
- test-2-13:
111120
requires:
112121
- test-2-12
122+
filters:
123+
tags:
124+
only: /.*/
113125
- release:
114126
requires:
115127
- format
116128
- test-2-11
117129
- test-2-12
118130
- test-2-13
119131
filters:
120-
branches:
121-
only: master
122132
tags:
123133
only: /^[1-9]+.[0-9]+.[0-9]+.*/
134+
branches:
135+
ignore: /.*/

0 commit comments

Comments
 (0)