I’m trying to use an example from the docs and getting a linter warning. Am I doing anything wrong?
https://circleci.com/docs/2.0/configuration-reference/#logic-statement-examples
1 Like
Hi @bananas ,
The example in the documentation should work fine when using it in your config.yml file. I think the linter is expecting a string, so if you would like the warning to disappear, you can try putting quotes around the two values like this:
workflows:
my-workflow:
when:
or:
- equal: [ "master", << pipeline.git.branch >> ]
- equal: [ "staging", << pipeline.git.branch >> ]
Hope this helps!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.