diff --git a/dist/index.js b/dist/index.js index a5bc3e7..27bd9c1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -47065,7 +47065,7 @@ var configSchema = object({ "perennial-regex": string3().optional() }).optional() }); -var CONFIG_FILE_NAMES = [".git-branches.toml", ".git-town.toml"]; +var CONFIG_FILE_NAMES = [".git-branches.toml", ".git-town.toml", "git-town.toml"]; var configFile; CONFIG_FILE_NAMES.forEach((file) => { try { @@ -47077,7 +47077,7 @@ CONFIG_FILE_NAMES.forEach((file) => { var parsed = configSchema.safeParse(toml.parse(configFile ?? "")); if (!parsed.success) { core4.warning( - "Failed to parse Git Town config. If this is a mistake, ensure that `.git-branches.toml`/`.git-town.toml` is valid." + "Failed to parse Git Town config. If this is a mistake, ensure that `.git-branches.toml`/`.git-town.toml`/`git-town.toml` is valid." ); } var config = configFile && parsed.success ? parsed.data : void 0; diff --git a/src/config.ts b/src/config.ts index e36507a..aca8c0c 100644 --- a/src/config.ts +++ b/src/config.ts @@ -15,7 +15,7 @@ const configSchema = object({ export type Config = z.infer -const CONFIG_FILE_NAMES = ['.git-branches.toml', '.git-town.toml'] +const CONFIG_FILE_NAMES = ['.git-branches.toml', '.git-town.toml', 'git-town.toml'] let configFile: string | undefined CONFIG_FILE_NAMES.forEach((file) => { @@ -30,7 +30,7 @@ const parsed = configSchema.safeParse(toml.parse(configFile ?? '')) if (!parsed.success) { core.warning( - 'Failed to parse Git Town config. If this is a mistake, ensure that `.git-branches.toml`/`.git-town.toml` is valid.' + 'Failed to parse Git Town config. If this is a mistake, ensure that `.git-branches.toml`/`.git-town.toml`/`git-town.toml` is valid.' ) }