Skip to content

Commit

Permalink
Skip codecov upload for PRs from forks
Browse files Browse the repository at this point in the history
(e.g. dependabot)

Signed-off-by: Patrick Harböck <[email protected]>
  • Loading branch information
Pharb committed Sep 8, 2024
1 parent c9d4257 commit eb820b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
- name: Upload coverage to Codecov
# Docs: https://github.com/marketplace/actions/codecov
uses: codecov/codecov-action@v4
if: ${{ env.CODECOV_TOKEN != '' }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit eb820b8

Please sign in to comment.