Skip to content

Commit 00ba16f

Browse files
committed
fix: skip codecov if user not owner
1 parent a5b719f commit 00ba16f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/codecov.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
jobs:
1111
codecov:
1212
runs-on: ubuntu-latest
13+
if: github.event.pull_request.head.repo.full_name == github.repository
1314
permissions:
1415
actions: write
1516
contents: write
@@ -40,7 +41,7 @@ jobs:
4041
indicators: true
4142
output: both
4243
- name: Upload coverage to PR comment
43-
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository }}
44+
if: ${{ github.event_name == 'pull_request' }}
4445
uses: marocchino/sticky-pull-request-comment@v2
4546
with:
4647
header: Code coverage report

0 commit comments

Comments
 (0)