YAML anchor doesn't work

Today, the job stopped working due to a parse error. It worked fine until yesterday.

.circleci/config.yml is like this:

jobs:
  one_job:
    steps:
      - run: &deploy.install-dependencies
          name: install dependencies
          command: |
            echo "start installing deps"
  another_job:
    steps:
      - run:
          <<: *deploy.install-dependencies

Error is here:

Unable to parse YAML
while scanning an anchor
 in 'string', line 250, column 14:
          - run: &deploy.install-dependencies
                 ^

After I replaced &deploy.install-dependencies with &deploy-install-dependencies, it seems to work well.

1 Like

I have the same problem since this morning. I will try your solution but I do not understand why it stopped suddenly today. Did I miss any news or deprecation ?