Problem with workflow in config.yml


#1

Hi there
I have

workflows:
  version: 2
  node-ios:
    jobs:
      - build
      - ios:
          type: approval
          requires:
            - build

I added a couple strings

workflows:
  version: 2
  node-ios:
    jobs:
      - build
          filters:
            branches:
              only: dev
      - ios:
          type: approval
          requires:
            - build

After that I got error

  • Error parsing config file: yaml: line 47: mapping values are not allowed in this context
  • Cannot find a job named build to run in the jobs: section of your configuration file.
    If you expected a workflow to run, check your config contains a top-level key called ‘workflows:’

I need to follow the only dev branch.


#3

It does not work.


#5

Thank you! Done.


#6

I found my missprint.

workflows:
  version: 2
  node-ios:
    jobs:
      - build:
          filters:
            branches:
              only: dev
      - ios:
          type: approval
          requires:
            - build

#7

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