Skip to content

Commit

Permalink
fix dependabot detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Logicer16 committed Nov 23, 2024
1 parent 91f46ae commit 96c7b67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

env:
report: ${{ github.event_name != 'workflow_call' || inputs.report }}
notDependabot: ${{ github.event_name != 'pull_request' && github.event.pull_request.user.login != 'dependabot[bot]' }}
dependabot: ${{ github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]' }}

jobs:
Prepare:
Expand Down Expand Up @@ -121,14 +121,14 @@ jobs:
run: pnpm run test:ci --coverage --reporter junit --outputFile ./coverage/junit.xml

- name: Upload coverage to Codecov
if: ${{ env.report && env.notDependabot }}
if: ${{ env.report && env.dependabot == 'false' }}
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload test results to Codecov
if: ${{ !cancelled() && env.report && env.notDependabot }}
if: ${{ !cancelled() && env.report && env.dependabot == 'false' }}
uses: codecov/test-results-action@v1
with:
fail_ci_if_error: true
Expand Down

0 comments on commit 96c7b67

Please sign in to comment.