Skip to content

Commit 64ac86f

Browse files
authored
ci: only upload coverage when secrets are available (#670)
1 parent 9399537 commit 64ac86f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
reporttypes: "Cobertura"
5252
- name: Publish coverage report to Codacy
5353
uses: codacy/codacy-coverage-reporter-action@master
54+
if: github.repository == 'System-IO-Abstractions/System.IO.Abstractions' && github.event_name == 'push'
5455
with:
5556
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
5657
coverage-reports: coverage-report/Cobertura.xml

0 commit comments

Comments
 (0)