Skip to content

Commit 018dd82

Browse files
committed
ci: update ci.yml
1 parent 7d59842 commit 018dd82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,5 @@ jobs:
5454
with:
5555
token: ${{ secrets.CODECOV_TOKEN }}
5656
files: ./coverage/lcov.info # Path to your lcov coverage file
57-
if: success() && secrets.CODECOV_TOKEN # Only run if previous steps succeeded and token exists
57+
# Corrected 'if' condition for accessing secrets
58+
if: success() && github.event_name == 'push' && github.repository_owner == 'your-github-username' # Replace 'your-github-username' with your actual username/organization. For pull_requests, tokens are often restricted by default.

0 commit comments

Comments
 (0)