Make sure we get rid of the ridiculous dashes in the names.

This commit is contained in:
Federico Builes
2022-09-19 17:28:59 +02:00
parent a91c3ac205
commit 4b4ec08f7b

View File

@@ -56,5 +56,13 @@ export function readConfigFile(
throw error
}
const values = YAML.parse(data)
// get rid of the ugly dashes from the actions conventions
for (const key of Object.keys(values)) {
if (key.includes('-')) {
values[key.replace(/-/g, '_')] = values[key]
delete values[key]
}
}
return values
}