]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: try to push
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Sun, 16 Feb 2020 19:07:53 +0000 (20:07 +0100)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Sun, 16 Feb 2020 19:07:53 +0000 (20:07 +0100)
.github/workflows/coverage.yml

index 9405e656623bf0f0e8f97b070160621fdc32e310..d08e6c088c3c3cb0f6bb420fa617c1f2ead15aef 100644 (file)
@@ -42,10 +42,10 @@ jobs:
       run: |
         COV_TXT=$(gcovr -s --html-details cov.html --filter '.*\.c$' src | grep lines | cut -d" " -f2)
         COV_NUM=${COV_TXT: : -1}
-        echo $COV_NUM
-        if [ $COV_NUM -ge 90 ]
+        COV_INT=${COV_NUM: : -2}
+        if [ $COV_INT -ge 90 ]
         then COLOR=green
-        elif [ $COV_NUM -ge 75 ]
+        elif [ $COV_INT -ge 75 ]
         then COLOR=yellow
         else COLOR=red
         fi