From f536fcdc84402ca46bca4ee01277180fa01f0368 Mon Sep 17 00:00:00 2001 From: Aleen Date: Tue, 12 Jan 2021 15:39:13 +0800 Subject: [PATCH] fixup! Support customized branch for committing (#51) (#55) --- source/app/action/index.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/source/app/action/index.mjs b/source/app/action/index.mjs index c189c817..9b9e77b5 100644 --- a/source/app/action/index.mjs +++ b/source/app/action/index.mjs @@ -293,6 +293,7 @@ await rest.repos.createOrUpdateFileContents({ ...github.context.repo, path:filename, message:`Update ${filename} - [Skip GitHub Action]`, content:Buffer.from(rendered).toString("base64"), + branch, ...(sha ? {sha} : {}) }) info("Commit to current repository", "ok")