Skip to content

Commit

Permalink
Retry to give write to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
thijssnelleman committed Sep 25, 2024
1 parent 83f9960 commit 68e0caf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/codecoverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
permissions:
contents: write

steps:
- uses: actions/checkout@v4
Expand All @@ -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
Expand Down

0 comments on commit 68e0caf

Please sign in to comment.