Skip to content

Commit

Permalink
Setup the git user in the local config instead of the global one (#128)
Browse files Browse the repository at this point in the history
* Update gitUtils.ts

* add changeset

Co-authored-by: Dhruvdutt Jadhav <dhruvdutt.jadhav@razorpay.com>
  • Loading branch information
Andarist and dhruvdutt committed Dec 23, 2021
1 parent 37c2edd commit 1937303
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/local-git-user.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@changesets/action": minor
---

Setup the git user in the local config instead of the global one.
2 changes: 0 additions & 2 deletions src/gitUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ import { execWithOutput } from "./utils";
export const setupUser = async () => {
await exec("git", [
"config",
"--global",
"user.name",
`"github-actions[bot]"`,
]);
await exec("git", [
"config",
"--global",
"user.email",
`"github-actions[bot]@users.noreply.github.com"`,
]);
Expand Down

0 comments on commit 1937303

Please sign in to comment.