You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -54,4 +54,5 @@ jobs:
54
54
with:
55
55
token: ${{ secrets.CODECOV_TOKEN }}
56
56
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