Tag filter not working [fixed]

I am trying to configure two jobs, one of which should always run, and one of which should only run for tagged commits.

This is my current config:

workflows:
  version: 2
  test-and-deploy:
    jobs:
      - deps-and-test:
          filters:
            tags:
              only: /.*/
      - build-and-deploy:
          requires:
            - deps-and-test
          filters:
            tags:
              only: /^v.*/ }
            branches:
              ignore: /.*/

Currently deps-and-test always runs (good), but build-and-deploy never runs. Example: https://circleci.com/workflow-run/24104d80-5d0b-4c39-87e3-11b0210c16a7

I added the branches ignore clause, because without that, build-and-deploy always runs.

(this is a public repo, https://github.com/appliedsciencestudio/js-interop/blob/master/.circleci/config.yml)

Turns out I had a typo in the config (which I left in above for posterity), a } after the only filter. Surprised that it even parsed.

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.