mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Setup the git user in the local config instead of the global one (#128)
* Update gitUtils.ts * add changeset Co-authored-by: Dhruvdutt Jadhav <dhruvdutt.jadhav@razorpay.com>
This commit is contained in:
co-authored by
Dhruvdutt Jadhav
parent
37c2edd85b
commit
19373036c4
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@changesets/action": minor
|
||||||
|
---
|
||||||
|
|
||||||
|
Setup the git user in the local config instead of the global one.
|
||||||
@@ -4,13 +4,11 @@ import { execWithOutput } from "./utils";
|
|||||||
export const setupUser = async () => {
|
export const setupUser = async () => {
|
||||||
await exec("git", [
|
await exec("git", [
|
||||||
"config",
|
"config",
|
||||||
"--global",
|
|
||||||
"user.name",
|
"user.name",
|
||||||
`"github-actions[bot]"`,
|
`"github-actions[bot]"`,
|
||||||
]);
|
]);
|
||||||
await exec("git", [
|
await exec("git", [
|
||||||
"config",
|
"config",
|
||||||
"--global",
|
|
||||||
"user.email",
|
"user.email",
|
||||||
`"github-actions[bot]@users.noreply.github.com"`,
|
`"github-actions[bot]@users.noreply.github.com"`,
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user