Fix global git config in update-wiki.sh
This commit is contained in:
@@ -16,9 +16,6 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
git config --global user.email "orabot@users.noreply.github.com"
|
|
||||||
git config --global user.name "orabot"
|
|
||||||
|
|
||||||
echo "Updating https://github.com/OpenRA/OpenRA/wiki/"
|
echo "Updating https://github.com/OpenRA/OpenRA/wiki/"
|
||||||
rm -rf $HOME/openra-wiki
|
rm -rf $HOME/openra-wiki
|
||||||
git clone git@github.com:OpenRA/OpenRA.wiki.git $HOME/openra-wiki
|
git clone git@github.com:OpenRA/OpenRA.wiki.git $HOME/openra-wiki
|
||||||
@@ -26,6 +23,8 @@ cp -fr ../DOCUMENTATION.md "${HOME}/openra-wiki/Traits${TAG}.md"
|
|||||||
cp -fr ../Lua-API.md "${HOME}/openra-wiki/Lua API${TAG}.md"
|
cp -fr ../Lua-API.md "${HOME}/openra-wiki/Lua API${TAG}.md"
|
||||||
|
|
||||||
pushd $HOME/openra-wiki
|
pushd $HOME/openra-wiki
|
||||||
|
git config --local user.email "orabot@users.noreply.github.com"
|
||||||
|
git config --local user.name "orabot"
|
||||||
git add "Traits${TAG}.md"
|
git add "Traits${TAG}.md"
|
||||||
git add "Lua API${TAG}.md"
|
git add "Lua API${TAG}.md"
|
||||||
git commit -m "Update trait and scripting documentation for branch $1"
|
git commit -m "Update trait and scripting documentation for branch $1"
|
||||||
|
|||||||
Reference in New Issue
Block a user