Can someone help me indent this .yml
file? Each time I set it I get an error:
Unable to parse YAMLmapping values are not allowed here in 'string', line 1, column 17: version: 2.1orbs: heroku: circleci/[email protected] ... ^
version: 2.1
orbs:
heroku:
circleci/[email protected]
workflows:
heroku_deploy:
jobs: - heroku/deploy-via-git
thank you
CodePudding user response:
Could be that the element in jobs has to be on a new line and indented?
version: 2.1
orbs:
heroku:
circleci/[email protected]
workflows:
heroku_deploy:
jobs:
- heroku/deploy-via-git
CodePudding user response:
I believe your line endings aren't being recognized properly. Line 1, column 17 corresponds to the end of this single line, which you believe to be two lines:
version: 2.1orbs:
Make sure your file is encoded as UTF-8 and uses Unix line endings, then try again.