mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-18 00:13:48 +08:00
fix: Add --global flag for git config
This commit is contained in:
parent
28b05fd3fa
commit
353a6f36c2
@ -103,14 +103,14 @@ fi
|
|||||||
|
|
||||||
# push to publishing branch
|
# push to publishing branch
|
||||||
if [[ -n "${INPUT_USERNAME}" ]]; then
|
if [[ -n "${INPUT_USERNAME}" ]]; then
|
||||||
git config user.name "${INPUT_USERNAME}"
|
git config --global user.name "${INPUT_USERNAME}"
|
||||||
else
|
else
|
||||||
git config user.name "${GITHUB_ACTOR}"
|
git config --global user.name "${GITHUB_ACTOR}"
|
||||||
fi
|
fi
|
||||||
if [[ -n "${INPUT_USEREMAIL}" ]]; then
|
if [[ -n "${INPUT_USEREMAIL}" ]]; then
|
||||||
git config user.email "${INPUT_USEREMAIL}"
|
git config --global user.email "${INPUT_USEREMAIL}"
|
||||||
else
|
else
|
||||||
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
|
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
|
||||||
fi
|
fi
|
||||||
git remote rm origin || true
|
git remote rm origin || true
|
||||||
git remote add origin "${remote_repo}"
|
git remote add origin "${remote_repo}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user