diff --git a/.github/workflows/codecoverage.yml b/.github/workflows/codecoverage.yml index bcddaf7e0..18fc4f1ce 100644 --- a/.github/workflows/codecoverage.yml +++ b/.github/workflows/codecoverage.yml @@ -7,6 +7,8 @@ jobs: runs-on: ubuntu-latest strategy: max-parallel: 5 + permissions: + contents: write steps: - uses: actions/checkout@v4 @@ -29,6 +31,13 @@ jobs: run: pytest --cov sparkle/ --cov-report=xml - name: Run badge generator run: genbadge coverage -i coverage.xml -o .reports/coverage + - name: Commit badge + run: | + git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" + git add .reports/coverage + git commit -m "Update badge" + git push - name: Archive outputs uses: actions/upload-artifact@v4