Convert from json to yaml for registries input
This commit is contained in:
parent
b0443622cd
commit
abdf26c28f
5 changed files with 26 additions and 14 deletions
|
|
@ -1723,7 +1723,7 @@ export async function initConfig(
|
|||
|
||||
function parseRegistries(registriesInput: string | undefined) {
|
||||
try {
|
||||
return registriesInput ? JSON.parse(registriesInput) : undefined;
|
||||
return registriesInput ? yaml.l(registriesInput) : undefined;
|
||||
} catch (e) {
|
||||
throw new Error(
|
||||
`Invalid registries input. Must be a JSON string, but got: ${
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue