- adjust placeholder for yml as ${{}} is reserved
This commit is contained in:
+4
-1
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user