Dynamic continue config doesn't work with a tag filter

# config.yml
version: 2.1
setup: true

orbs:
  path-filtering: circleci/path-filtering@0.1.2

workflows:
  generate-config:
    jobs:
    - path-filtering/filter:
        mapping: |
          api/.* deploy-api true
# continue_config.yml
version: 2.1

parameters:
  deploy-api:
    default: false
    type: boolean

workflows:
  deploy-api:
    when: << pipeline.parameters.deploy-api >>
    jobs:
      - deploy-api-job:
          filters:
            branches:
              ignore: /.*/
            tags:
              only: /^my-tag.*/


A commit that changes api/.* and is tagged with my-tag-1 will not run the workflow. The deploy-api param will be set to true, but the continue workflow is not run. The tag shows up in the UI with a “No workflow” label. A branch filter does work however. Is this a bug with tag filtering?

1 Like

Hi @dseravalli , how is it going!. Have you tried to put the filters in the path-filtering/filter job like this

workflows:
  generate-config:
    jobs:
    - path-filtering/filter:
        mapping: |
          api/.* deploy-api true
        filters:
          branches:
            only:
              - /.*/
          tags:
            only:
              - /.*