From a26f2e4f0ff80dc941da85251d9d547eebf3087e Mon Sep 17 00:00:00 2001 From: William Martin Date: Fri, 1 Sep 2023 15:14:54 +0000 Subject: [PATCH] Fix formula path after sharding of homebrew-core --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index a295b4e..524dabb 100644 --- a/src/main.ts +++ b/src/main.ts @@ -82,7 +82,7 @@ export async function prepareEdit( } const formulaName = getInput('formula-name') || ctx.repo.repo.toLowerCase() const branch = getInput('base-branch') - const filePath = getInput('formula-path') || `Formula/${formulaName}.rb` + const filePath = getInput('formula-path') || `Formula/${formulaName.charAt(0)}/${formulaName}.rb` const version = tagName.replace(/^v(\d)/, '$1') const downloadUrl = getInput('download-url') ||