Added setupGitUser option to enable or disable setting up a default git user (#131)

* custom git user option

* Create two-dolls-promise.md

* Update two-dolls-promise.md

* change input name and update default

* Update .changeset/two-dolls-promise.md

Co-authored-by: Mitchell Hamilton <mitchell@hamil.town>
This commit is contained in:
Jack Leslie
2022-01-07 15:27:29 +01:00
committed by GitHub
co-authored by Mitchell Hamilton
parent e0c51a52b8
commit d3db9eceaf
6 changed files with 30 additions and 7 deletions
+6 -2
View File
@@ -14,8 +14,12 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined;
return;
}
console.log("setting git user");
await gitUtils.setupUser();
let setupGitUser = core.getBooleanInput('setupGitUser');
if (setupGitUser) {
console.log("setting git user");
await gitUtils.setupUser();
}
console.log("setting GitHub credentials");
await fs.writeFile(