【问题标题】:Unable to parse YAML in config.yml file when I deployed to circle-ci部署到 circle-ci 时无法解析 config.yml 文件中的 YAML
【发布时间】:2020-11-02 07:38:01
【问题描述】:

情况

  • 我的个人项目中出现配置处理错误

成功

  • 我添加了 AWS s3 和 CloudFront,并且在 circle-ci 上部署成功

失败

  • 我添加了导致错误的 linting,但我没有使用 tab t 缩进

这是我的repo

错误

!/bin/sh -eo pipefail
 Unable to parse YAML
 while scanning for the next token
 found character '\\t(TAB)' that cannot start any token. (Do not use \\t(TAB) for indentation)
  in 'string', line 57, column 34:
           - *show-current-branch-name\t
                                      ^
 
 -------
 Warning: This configuration was auto-generated to show you the message above.
 Don't rerun this job. Rerunning will have no effect.
false

【问题讨论】:

    标签: yaml config circleci lint


    【解决方案1】:

    您在第 57 行末尾有一个 TAB 字符。删除它,它应该可以通过。

    【讨论】: