Skip to content

Commit

Permalink
ci: don't upload coverage for renovate or release-please PRs (ansible…
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola authored Jul 25, 2024
1 parent 415477b commit 085476a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
run: make test ARGS="--cov --cov-config=pyproject.toml --cov-report=xml"

- name: Upload coverage reports to Codecov
if: >
!startsWith(github.head_ref, 'renovate/') &&
!startsWith(github.head_ref, 'release-please--')
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down Expand Up @@ -70,6 +73,9 @@ jobs:
ANSIBLE_FORCE_COLOR: "1"

- name: Upload coverage reports to Codecov
if: >
!startsWith(github.head_ref, 'renovate/') &&
!startsWith(github.head_ref, 'release-please--')
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit 085476a

Please sign in to comment.