Files
ESPEasy/releasebot
2018-01-12 01:56:34 +01:00

13 lines
295 B
Bash
Executable File

#!/bin/bash
# Call this from a cronjob every day to trigger a nightly build via travis.
git pull
#new commits since last tag?
BRANCH=`git rev-parse --abbrev-ref HEAD`
if ! git describe --exact-match 2>/dev/null | grep "^$BRANCH"; then
TAG="$BRANCH-`date +%Y%m%d`"
./release "$TAG"
fi