From 353a6f36c218f34ab23063aa22a46cb411298791 Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Sun, 2 Feb 2020 13:18:21 +0900 Subject: [PATCH] fix: Add --global flag for git config --- entrypoint.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 69eaf78..84711dd 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -103,14 +103,14 @@ fi # push to publishing branch if [[ -n "${INPUT_USERNAME}" ]]; then - git config user.name "${INPUT_USERNAME}" + git config --global user.name "${INPUT_USERNAME}" else - git config user.name "${GITHUB_ACTOR}" + git config --global user.name "${GITHUB_ACTOR}" fi if [[ -n "${INPUT_USEREMAIL}" ]]; then - git config user.email "${INPUT_USEREMAIL}" + git config --global user.email "${INPUT_USEREMAIL}" else - git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" + git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" fi git remote rm origin || true git remote add origin "${remote_repo}"