From e39a2d107c9d250182cf336dbbf37caa8b42be36 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 20 Feb 2020 13:17:54 +0100 Subject: [PATCH] :wrench: Use tmp dir --- .github/workflows/coverage.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 82ad00ab..8f559881 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -51,7 +51,6 @@ jobs: printf '# Gwion coverage\n```\n' > gwion-coverage-report/README.md 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 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 @@ -65,7 +64,7 @@ jobs: do wget https://badgen.net/badge/coverage/$COV_NUM/$COLOR -O gwion-coverage-report/badge.svg && break done branch=$(basename ${{ github.event.ref }}) - mkdir gwion-coverage-report/html/$branch + mkdir -p gwion-coverage-report/html/$branch mv *.html gwion-coverage-report/html/$branch - name: Push Report -- 2.43.0