teamspeak3/update-version.sh
Knut Ahlers 8e6555606a
Fix wrong repo
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-05-20 00:02:09 +02:00

21 lines
377 B
Bash
Executable file

#!/bin/bash
set -euo pipefail
### ---- ###
echo "Switch back to master"
git checkout master
git reset --hard origin/master
### ---- ###
echo "Excuting update"
make update
echo "Checking for changes..."
git diff --exit-code && exit 0
echo "Updating repository..."
make tag
git push -q https://${GH_USER}:${GH_TOKEN}@github.com/luzifer-docker/teamspeak3.git master --tags