Skip to content

Commit cce214b

Browse files
committed
Stop trying to upload the coverage if there is no auth token
This fixes build failures on pull requests from forks (where usually no authentication token for the code coverage is set).
1 parent 2a2a167 commit cce214b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
run: ./vendor/bin/phpunit --coverage-clover build/coverage/xml
7474

7575
- name: Upload coverage results to Coveralls
76-
if: "${{ matrix.coverage != 'none' }}"
76+
if: "${{ matrix.coverage != 'none' }} && ${{ secrets.CODACY_PROJECT_TOKEN != '' }}"
7777
env:
7878
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
7979
run: |

0 commit comments

Comments
 (0)