- adjust placeholder for yml as ${{}} is reserved

This commit is contained in:
Mike Penz
2022-07-29 09:30:57 +00:00
committed by GitHub
parent 02b79cb00a
commit f55f49981d
5 changed files with 10 additions and 6 deletions
+4 -1
View File
@@ -86,7 +86,10 @@ function readConfiguration(filename: string): Configuration | undefined {
*/
export function parseConfiguration(config: string): Configuration | undefined {
try {
const configurationJSON: Configuration = JSON.parse(config)
// for compatiblity with the `yml` file we require to use `#{{}}` instead of `${{}}` - replace it here.
const configurationJSON: Configuration = JSON.parse(
config.replace(/#{{/g, '${{')
)
return configurationJSON
} catch (error) {
core.info(