15
0
Fork 0
Browse Source

change check on branch name

master
Tykayn 1 year ago committed by tykayn
parent
commit
f42c8d58c2
  1. 3
      monitoring/check_version.sh

3
monitoring/check_version.sh

@ -24,7 +24,8 @@ if [ "$#" -ne 0 ]; then
usage
else
lastVersion=$(curl -s https://framagit.org/api/v4/projects/$FRAMAGIT_PROJECT_ID/releases | jshon -a -e name|cut -d '"' -f2|grep -v '[\^\(alpha\)]'|head -n 1)
currentVersion=$(cd $LOCAL_REPO && git branch | grep '*'|cut -c 3-100 )
currentVersion=$(cd $LOCAL_REPO && git branch | grep '*'|cut -c 19-100 )
# la branche se nomme ainsi "chapril-working-1.0.2" donc pour comparer uniquement les numéros de version on enlève le début du nom
#echo "current version: $currentVersion"
#echo "last version: $lastVersion"

Loading…
Cancel
Save