Skip to content

Commit e791d5c

Browse files
authored
chore: set git credentials locally (#1118)
set bot's git credentials locally
1 parent ed4e629 commit e791d5c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: .github/scripts/setup-ci-git-user.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ then
1212
exit 1
1313
fi
1414

15-
git config --global user.name "$GITHUB_NAME"
16-
git config --global user.email "$GITHUB_EMAIL"
17-
echo "machine github.com login $GITHUB_NAME password $GITHUB_TOKEN" > ~/.netrc
15+
git config user.name "$GITHUB_NAME"
16+
git config user.email "$GITHUB_EMAIL"
17+
echo "machine github.com login $GITHUB_NAME password $GITHUB_TOKEN" > "$HOME/.netrc"
1818

1919

Diff for: .github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
title: "release: version packages"
1919
commit: "release: version packages"
20-
setupGitUser: false
20+
setupGitUser: "false"
2121
publish: "yarn release:publish"
2222
version: "yarn release:version"
2323
env:

0 commit comments

Comments
 (0)