From c4c63b49384f30e2f955738bebb1bf7b3ce8b5b9 Mon Sep 17 00:00:00 2001 From: silverwind Date: Mon, 18 Nov 2019 20:19:14 +0100 Subject: [PATCH] add autocommit.sh --- tools/autocommit.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 tools/autocommit.sh diff --git a/tools/autocommit.sh b/tools/autocommit.sh new file mode 100755 index 000000000..edba107a2 --- /dev/null +++ b/tools/autocommit.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +cd "$(dirname "${BASH_SOURCE[0]}")/.." + +git fetch --tags origin master +git reset --hard origin/master +npm i +npx grunt generate + +if [[ $(git status --porcelain) ]]; then + npm t || exit 1 + git commit -am "automated regeneration" + npx grunt patch + git push --tags origin master +fi