Workflow not start when tag created

Hi everyone, I need to run workflow when tag created. I put filters tags only: /.*/ but Circle CI not find the matched workflow.
Here my workflow definitions:

  # Triggerd when TAG was created
  build_tag_release:
    jobs:
      - check_out_and_pre_build:
          context: slack-secrets
          filters: &filters-tagged
            tags:
                only: /.*/
            branches:
                ignore: /.*/    
          post-steps:
            - notify_build_status:
                errorOnly: true 
                buildJob: "build APK" 
      - build_apk:
          filters:
            <<: *filters-tagged  
          context: slack-secrets
          favor: "gl" # Paramters
          buildType: "release" # Paramters
          releaseNotes: "Test from CI" # Paramters
          requires:
            - check_out_and_pre_build    
          post-steps:
            - notify_build_status:
                errorOnly: false
                buildJob: "build APK"

When I create tag named: 3.4.0b987(test-CI-5) the event is trigger to Circle CI but it not find matched workflow for tagged event [See the screenshot here: https://imgur.com/a/r1fzwIP].

I found the solutions, it’s my mistake about the indent space on only: /.*/, the final code it should be

workflows:
  # Triggerd when TAG was created
  build_tag_release:
    jobs:
      - check_out_and_pre_build:
          context: slack-secrets
          filters: &filters-tagged
            tags:
              only: /.*/
            branches:
              ignore: /.*/    
          post-steps:
            - notify_build_status:
                errorOnly: true 
                buildJob: "build APK" 
      - build_apk:
          filters:
            <<: *filters-tagged  
          context: slack-secrets
          favor: "gl" # Paramters
          buildType: "release" # Paramters
          releaseNotes: "Test from CI" # Paramters
          requires:
            - check_out_and_pre_build    
          post-steps:
            - notify_build_status:
                errorOnly: false
                buildJob: "build APK"

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