First off thanks for this workflow. Really appreciate it. I have a folder structure that looks similar to:
โ ls
README.md modules test1 test2 test3
- package-ecosystem: 'terraform'
directory: '*/\.terraform.lock.hcl'
commit-message:
prefix: 'terraform'
schedule:
interval: 'weekly'
// all js files, but don't look in node_modules
const jsfiles = await glob('**/*.js', { ignore: 'node_modules/**' })
YAMLException: bad indentation of a mapping entry (11:51)
11 | ... erraform.lock.hcl, { ignore: 'modules/**' }'
-----------------------------------------^
12 | ...
13 | ... rm'
at generateError (/runner/_work/_actions/Makeshift/generate-dependabot-glob-action/master/dist/index.js:6344:10)
at throwError (/runner/_work/_actions/Makeshift/generate-dependabot-glob-action/master/dist/index.js:6348:9)
at readBlockMapping (/runner/_work/_actions/Makeshift/generate-dependabot-glob-action/master/dist/index.js:7343:7)
at composeNode (/runner/_work/_actions/Makeshift/generate-dependabot-glob-action/master/dist/index.js:7602:12)
at readBlockSequence (/runner/_work/_actions/Makeshift/generate-dependabot-glob-action/master/dist/index.js:7169:5)
at composeNode (/runner/_work/_actions/Makeshift/generate-dependabot-glob-action/master/dist/index.js:7633:45)
at readBlockMapping (/runner/_work/_actions/Makeshift/generate-dependabot-glob-action/master/dist/index.js:7325:11)
at composeNode (/runner/_work/_actions/Makeshift/generate-dependabot-glob-action/master/dist/index.js:7602:12)
at readDocument (/runner/_work/_actions/Makeshift/generate-dependabot-glob-action/master/dist/index.js:7786:3)
at loadDocuments (/runner/_work/_actions/Makeshift/generate-dependabot-glob-action/master/dist/index.js:7849:5) {
reason: 'bad indentation of a mapping entry',
mark: {
name: null,
buffer: 'version: 2\n' +
'\n' +
'updates:\n' +
"- package-ecosystem: 'github-actions'\n" +
' # No globs\n' +
" directory: '/'\n" +
' schedule:\n' +
" interval: 'daily'\n" +
'\n' +
"- package-ecosystem: 'terraform'\n" +
" directory: '**/\\.terraform.lock.hcl, { ignore: 'modules/**' }'\n" +
' commit-message:\n' +
" prefix: 'terraform'\n" +
' schedule:\n' +
" interval: 'weekly'\n",
position: 207,
line: 10,
column: 50,
snippet: " 8 | ... '\n" +
' 9 | ... \n' +
" 10 | ... 'terraform'\n" +
" 11 | ... erraform.lock.hcl, { ignore: 'modules/**' }'\n" +
'-----------------------------------------^\n' +
' 12 | ... \n' +
" 13 | ... rm'"
}
}
Error: bad indentation of a mapping entry (11:51)