From 2eeb37d8273946121bd1ab554aaf434abf89a7bc Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Sat, 30 Jan 2021 17:29:55 +0100 Subject: [PATCH] Update index.mjs --- .github/index.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/index.mjs b/.github/index.mjs index 96f14904..fcb7d9a7 100644 --- a/.github/index.mjs +++ b/.github/index.mjs @@ -44,11 +44,11 @@ //Commit and push if (mode === "publish") { - console.log(`Pushing staged changes: \n${staged.map(file => ` - ${file}`).join("\n")}`) + console.log(`Pushing staged changes: \n${[...staged].map(file => ` - ${file}`).join("\n")}`) const gitted = await git .addConfig("user.name", "GitHub Action") .addConfig("user.email", "<>") - .add(...staged) + .add([...staged]) .commit("Auto regenerate files - [Skip GitHub Action]") .push("origin", "master") console.log(gitted)