'Branches/only' broken?

docker

#1

This is my original config.yml

version: 2
jobs:
  build:
    working_directory: ~/repo/appengine
    docker:
      - image: 1234.dkr.ecr.us-west-2.amazonaws.com/circleci/build:latest
    steps:
      - checkout
 deploy:
    docker:
      - image: 1234.dkr.ecr.us-west-2.amazonaws.com/circleci/build:latest
    steps:
      - run: pynt deploy


workflows:
  version: 2
  build-deploy:
    jobs:
      - build
      - deploy-konga:
          requires:
            - build

The circleci process started as expected.

I want to limit this just to a few branches (obviously for deployment purpose), So I added

version: 2
jobs:
  build:
    working_directory: ~/repo/appengine
     # Added this
    branches:
      only:
          - dev
          - master
    docker:
      - image: 1234.dkr.ecr.us-west-2.amazonaws.com/circleci/build:latest
    steps:
      - checkout

No circleci process is started at all! I expected to see

  1. if the branch is either dev or master, the deploy step is executed

  2. if the branch is neither, a circleci process will be shown as ‘skipped’

So I do not expect to see nothing at all.

I have ran circleci config validate and it reported ok.

Is there any missing in my config?


#2