Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit c772b86

Browse files
committed
user.name/user.email/gc.autoを~/.gitconfigでなく.git/configへ保存するようにした
1 parent 6c2db2a commit c772b86

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ runs:
4242
run: |
4343
set -xe
4444
45-
/usr/bin/git config --global gc.auto 0
46-
47-
/usr/bin/git config --global user.name "${GITHUB_ACTOR}"
48-
/usr/bin/git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
49-
5045
export __SHA=${{ inputs.sha || github.sha }}
5146
if [ ! -z "${{ inputs.branch_name }}" ]; then
5247
# Remove "refs/heads/" at head if exists it
@@ -81,6 +76,11 @@ runs:
8176
/usr/bin/git fetch $DEPTH origin $__SHA
8277
/usr/bin/git reset --hard FETCH_HEAD
8378
fi
79+
80+
/usr/bin/git config --local gc.auto 0
81+
82+
/usr/bin/git config --local user.name "${GITHUB_ACTOR}"
83+
/usr/bin/git config --local user.email "${GITHUB_ACTOR}@users.noreply.github.com"
8484
popd
8585
8686
unset GIT_LFS_SKIP_SMUDGE

0 commit comments

Comments
 (0)