diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index a78efe1..f76e0fc 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -19,6 +19,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v6 + with: + fetch-depth: 0 - name: Set up Python 3.13 uses: actions/setup-python@v6 @@ -64,5 +66,7 @@ jobs: git config --local user.name "github-actions[bot]" git config --local user.email "github-actions[bot]@users.noreply.github.com" git add badges/coverage-badge.svg - git diff --staged --quiet || git commit -m "Update coverage badge [skip ci]" + git diff --cached --quiet && exit 0 + git commit -m "Update coverage badge [skip ci]" + git pull --rebase origin develop git push \ No newline at end of file