mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
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:
co-authored by
Mitchell Hamilton
parent
e0c51a52b8
commit
d3db9eceaf
+6
-2
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user