Skip to content

Commit 0b3dfbe

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 0b3dfbe

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,8 +73,8 @@ jobs:
7373
run: ./vendor/bin/phpunit --coverage-clover build/coverage/xml
7474

7575
- name: Upload coverage results to Coveralls
76-
if: "${{ matrix.coverage != 'none' }}"
7776
env:
7877
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
78+
if: "${{ matrix.coverage != 'none' }} && ${{ env.CODACY_PROJECT_TOKEN != '' }}"
7979
run: |
8080
./vendor/bin/codacycoverage clover build/coverage/xml

0 commit comments

Comments
 (0)