From 65272f785a3dc567f9048e82c94310956a6884cc Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Wed, 7 Nov 2018 19:45:04 +0100 Subject: [PATCH] temp --- update.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 45c16a83..a4c4058e 100755 --- a/update.sh +++ b/update.sh @@ -1,5 +1,14 @@ #!/usr/bin/env bash +# Requires SENTRY_AUTH_TOKEN and SENTRY_ORG set in .profile + +old=$(git rev-list HEAD -n 1) git pull +new=$(git rev-list HEAD -n 1) +if [ ${old} = ${new} ]; then + version=$(sentry-cli releases propose-version) + sentry-cli releases new -p royalnet ${version} + sentry-cli releases set-commits --auto ${version} +fi sudo python3.6 -m pip install -r requirements.txt sudo service apache2 restart -python3.6 -OO bots.py \ No newline at end of file +python3.6 -OO bots.py