mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-27 19:57:38 +00:00
fixed releasebot issues with multiple branches
This commit is contained in:
@@ -4,7 +4,10 @@ NEW="$1"
|
||||
|
||||
[ "$NEW" != "" ] || exit 1
|
||||
|
||||
PREV=`git tag --sort=creatordate|tail -1`
|
||||
echo "Creating release $NEW"
|
||||
|
||||
NEWBASE=`echo "$NEW"|cut -f1 -d'-'`
|
||||
PREV=`git tag --sort=creatordate|grep "^$NEWBASE"|tail -1`
|
||||
|
||||
############## update Release_notes.txt
|
||||
NOTES="dist/Release_notes.txt"
|
||||
|
||||
+2
-3
@@ -5,9 +5,8 @@
|
||||
git pull
|
||||
|
||||
#new commits since last tag?
|
||||
if ! git describe --exact-match 2>/dev/null; then
|
||||
BRANCH=`git rev-parse --abbrev-ref HEAD`
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user