Adapt the schematic uploader to this gitea instance

And my forked repository and user with a different name for that matter
This commit is contained in:
Chipmunk 2023-02-01 21:15:03 -05:00
parent 32479825d4
commit 01e56b2d77

View file

@ -6,20 +6,20 @@
set -x
folder=~/server/plugins/FastAsyncWorldEdit/schematics/
hostname=github.com
hostname=chipmunk.land
ssh-keygen -R $hostname
ssh-keyscan -H $hostname >> ~/.ssh/known_hosts
while true; do
if [ ! -d "$folder" ]; then
git clone --depth 1 git@$hostname:kaboomserver/schematics.git $folder
git clone --depth 1 gitea@$hostname:chipmunk.land-kaboomserver/schematics.git $folder
fi
cd $folder
if [ "$(git add $(git ls-files -o) -v)" ]; then
git -c user.name='kaboom' -c user.email='kaboom.pw' commit -m "Add new schematics"
git -c user.name='Chipmunk Kaboom Schematic Uploader' -c user.email='kaboom-schems@chipmunk.land' commit -m "Add new schematics"
git push
fi
sleep 1