Skip to content

Commit

Permalink
fix: Add --global flag for git config
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Feb 2, 2020
1 parent 28b05fd commit 353a6f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 353a6f3

Please sign in to comment.