From 4b4ec08f7bcd71379df3485946d95a71a23d9091 Mon Sep 17 00:00:00 2001 From: Federico Builes Date: Mon, 19 Sep 2022 17:28:59 +0200 Subject: [PATCH] Make sure we get rid of the ridiculous dashes in the names. --- src/config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/config.ts b/src/config.ts index 6dcf8ce..b55161d 100644 --- a/src/config.ts +++ b/src/config.ts @@ -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 }