]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: Use tmp dir
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Thu, 20 Feb 2020 12:06:55 +0000 (13:06 +0100)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Thu, 20 Feb 2020 12:06:55 +0000 (13:06 +0100)
.github/workflows/coverage.yml

index 7a1931b1cc105b43a8fdca3ae89521d3216d2418..82ad00ab3dd9de260583b5fa265705c227376987 100644 (file)
@@ -52,7 +52,7 @@ jobs:
         gcovr -s --filter '.*\.c$' src >> gwion-coverage-report/README.md
         printf '```\n' >> gwion-coverage-report/README.md
         mkdir gwion-coverage-report/html || true
-        COV_TXT=$(gcovr -s --html-details gwion-coverage-report/html/index.html --html-title "Gwion coverage report" --filter '.*\.c$' src | grep lines | cut -d" " -f2)
+        COV_TXT=$(gcovr -s --html-details index.html --html-title "Gwion coverage report" --filter '.*\.c$' src | grep lines | cut -d" " -f2)
         COV_NUM=${COV_TXT: : -1}
         echo $COV_NUM > gwion-coverage-report/coverage_num.txt
         if [ $(python -c "print( $COV_NUM >= 90 )") = True ]
@@ -66,7 +66,7 @@ jobs:
         done
         branch=$(basename ${{ github.event.ref }})
         mkdir gwion-coverage-report/html/$branch
-        cp gwion-coverage-report/html/*.html gwion-coverage-report/html/$branch
+        mv *.html gwion-coverage-report/html/$branch
 
     - name: Push Report
       if: github.event_name == 'push'