Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0bdd00b546 |
@@ -20,3 +20,9 @@ inputs:
|
|||||||
description: 'Keep only the latest commit on a GitHub Pages branch'
|
description: 'Keep only the latest commit on a GitHub Pages branch'
|
||||||
required: false
|
required: false
|
||||||
default: 'false'
|
default: 'false'
|
||||||
|
username:
|
||||||
|
description: 'Set Git user.name'
|
||||||
|
required: false
|
||||||
|
useremail:
|
||||||
|
description: 'Set Git user.email'
|
||||||
|
required: false
|
||||||
|
|||||||
@@ -102,8 +102,16 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# push to publishing branch
|
# push to publishing branch
|
||||||
git config user.name "${GITHUB_ACTOR}"
|
if [[ -n "${INPUT_USERNAME}" ]]; then
|
||||||
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
|
git config user.name "${INPUT_USERNAME}"
|
||||||
|
else
|
||||||
|
git config user.name "${GITHUB_ACTOR}"
|
||||||
|
fi
|
||||||
|
if [[ -n "${INPUT_USEREMAIL}" ]]; then
|
||||||
|
git config user.email "${INPUT_USEREMAIL}"
|
||||||
|
else
|
||||||
|
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
|
||||||
|
fi
|
||||||
git remote rm origin || true
|
git remote rm origin || true
|
||||||
git remote add origin "${remote_repo}"
|
git remote add origin "${remote_repo}"
|
||||||
git add --all
|
git add --all
|
||||||
|
|||||||
Reference in New Issue
Block a user