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

index 8f559881f0c8d81b98103bd91b2678d102152b57..ce0a328960783b75e1ba535b38488ab863617ff6 100644 (file)
@@ -63,6 +63,7 @@ jobs:
         while true
         do wget https://badgen.net/badge/coverage/$COV_NUM/$COLOR -O gwion-coverage-report/badge.svg && break
         done
+        sed -i 's/<html>/<script type="text\/javascript" src="focus.js"><\/script><html>/' index.src_*.html
         branch=$(basename ${{ github.event.ref }})
         mkdir -p gwion-coverage-report/html/$branch
         mv *.html gwion-coverage-report/html/$branch
@@ -78,7 +79,6 @@ jobs:
         git commit -m "Update coverage" || true
         git push || true
         cp focus.js html
-        sed -i 's/<html>/<script type="text\/javascript" src="focus.js"><\/script><html>/' html/index.src_*.html
         git add -f html
         git commit -m "Update html report"
         git push origin :gh-pages || true