mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-01 01:44:34 -05:00
new scripts
This commit is contained in:
11
.github/scripts/commit-repo.sh
vendored
11
.github/scripts/commit-repo.sh
vendored
@@ -1,7 +1,16 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
rsync -a --delete --exclude .git --exclude .gitignore ../master/repo/ .
|
||||
cp ../master/repo/server-r* .
|
||||
new_build=$(ls | tail -1)
|
||||
diff $new_build server-latest.jar > /dev/null
|
||||
if [ "$?" -ne 0 ]; then # same file?
|
||||
rm $new_build
|
||||
else
|
||||
cp -f $new_build server-latest.jar
|
||||
fi
|
||||
|
||||
|
||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git status
|
||||
|
||||
Reference in New Issue
Block a user