diff --git a/.github/workflows/codecoverage.yml b/.github/workflows/codecoverage.yml index 3fd0227fb..2681674e3 100644 --- a/.github/workflows/codecoverage.yml +++ b/.github/workflows/codecoverage.yml @@ -31,8 +31,9 @@ jobs: run: pytest --cov sparkle/ --cov-report=xml - name: Run badge generator run: genbadge coverage -i coverage.xml -o .reports/coverage/coverage-badge.svg + Commit-Badge: if: ${{ git diff .reports/coverage/coverage-badge.svg }} - - name: Commit badge + - name: Commit to branch run: | git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]"