Update index.mjs
This commit is contained in:
5
.github/index.mjs
vendored
5
.github/index.mjs
vendored
@@ -44,10 +44,13 @@
|
|||||||
|
|
||||||
//Commit and push
|
//Commit and push
|
||||||
if (mode === "publish") {
|
if (mode === "publish") {
|
||||||
await git
|
console.log(`Pushing staged changes: \n${staged.map(file => ` - ${file}`).join("\n")}`)
|
||||||
|
const gitted = await git
|
||||||
.addConfig("user.name", "GitHub Action")
|
.addConfig("user.name", "GitHub Action")
|
||||||
.addConfig("user.email", "<>")
|
.addConfig("user.email", "<>")
|
||||||
.add(...staged)
|
.add(...staged)
|
||||||
.commit("Auto regenerate files - [Skip GitHub Action]")
|
.commit("Auto regenerate files - [Skip GitHub Action]")
|
||||||
.push("origin", "master")
|
.push("origin", "master")
|
||||||
|
console.log(gitted)
|
||||||
}
|
}
|
||||||
|
console.log("Success!")
|
||||||
|
|||||||
Reference in New Issue
Block a user