mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-03-13 10:10:27 +08:00
13 lines
295 B
Bash
Executable File
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
|