Added support for diffs in nightly

This commit is contained in:
Bella 2020-04-28 12:48:54 -04:00
parent d02fdecfcd
commit 24e095e3c2
No known key found for this signature in database
GPG Key ID: DBD4A6030080C8B3
1 changed files with 7 additions and 3 deletions

View File

@ -2,17 +2,21 @@
cd ~/kamiblue/
export COMMIT_LAST="$(git log --format=%h -1)"
git fetch kamiblue
export COMMIT_LAST_FULL="$(git log --format=%H -1)"
git fetch kamiblue master
git fetch origin master
git reset --hard kamiblue/master
git push --force origin master
export COMMIT_TRIM="$(git log --format=%h -1)"
if [ "$COMMIT_LAST" == "$COMMIT_TRIM" ]; then
exit 0
fi
fi
rm -rf build/libs
./scripts/preHook.sh
./gradlew build
./scripts/hook.sh
./scripts/hook.sh