No workflows started

workflows:
  main:
    jobs:
      - run-tests:
          context: context1
      - build-image:
          context: context1
          requires:
            - run-tests
          filters:
            tags:
              only: /.*/
            branches:
              ignore: /.*/
      - deploy-job:
          requires:
            - run-tests
            - build-image
          filters:
            tags:
              only: /.*/
            branches:
              ignore: /.*/
          context: context1

I’m trying to build and deploy only from the tags instead for every commits. but when i add the above filters the workflow is not starting. Could you please suggest what’s wrong with my workflow config ?

NOTE - I have created a tag from my own branch and pushed to github then workflow created but not started.

Hi @manjudr ,

Thank you for sharing your question on the forum!

The issue here is that jobs require you to specify a tag filter in order for them to be executed, but there is no filter specified for the job run-tests. Due to this job not running, the downstream build-image and deploy-job jobs will not execute as well. This leads to no jobs running, and the no workflow message showing on the dashboard.

Please let me know if this points you in the right direction, and feel free to ask if you have any additional questions.

Thanks for your response, @aaronclark - Actually i want to execute the run-tests workflow for every commits or whenever the pull requests raised but the build-image and deploy workflow should execute only when the tag is got created.
So that is the reason i have not added any filters to the run-tests workflow.

Please let me know what filters need to add to execute the run-tests when the pull requests raises ?

workflows:
  main:
    jobs:
      - run-tests:
          context: context1
          filters:
            tags:
              ignore: /.*/
            branches:
              ignore: /dependabot.*/
      - build-image:
          context: context1
          requires:
            - run-tests
          filters:
            tags:
              only: /.*/
            branches:
              ignore: /.*/
      - deploy-job:
          requires:
            - run-tests
            - build-image
          filters:
            tags:
              only: /.*/
            branches:
              ignore: /.*/
          context: context1

I have added the filters for all the jobs but it is still the same issue workflow status is “CREATED” but
in the workflow column shows “no workflow”
@aaronclark

Hi @manjudr ,

Thank you for the additional information and context. Taking a look at your latest message, I can see that there are two ignore parameters under filters. Could you try changing the ignore filter under tags to only?

I tested the following on my account and was able to get workflows to trigger:

workflows:
  main:
    jobs:
      - run-tests:
          context: context1
          filters:
            tags:
              only: /.*/
            branches:
              ignore: /dependabot.*/
      - build-image:
          context: context1
          requires:
            - run-tests
          filters:
            tags:
              only: /.*/
            branches:
              ignore: /.*/
      - deploy-job:
          requires:
            - run-tests
            - build-image
          filters:
            tags:
              only: /.*/
            branches:
              ignore: /.*/
          context: context1

Thanks for your support @aaronclark . It’s working fine as expected.