Skip to content

Commit a2c93c3

Browse files
menteOleksandr Vasylenko
andauthored
FX publish code coverage only for owners of repo (#58)
As we can not share secrets with forks (and it's not recommended), publish only for owners (eg in master branch), but skip for forks Co-authored-by: Oleksandr Vasylenko <oleksandr.vasylenko@flixbus.com>
1 parent 5ce40a3 commit a2c93c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
-v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" -w "${GITHUB_WORKSPACE}" php-avro-serde:${{ matrix.php.version }} \
149149
vendor/bin/phpunit --exclude-group integration --coverage-clover=build/coverage.clover --coverage-text
150150
- name: Publish code coverage
151-
if: ${{ matrix.php.version == '7.4' && matrix.php.composer == '--prefer-stable' }}
151+
if: ${{ matrix.php.version == '7.4' && matrix.php.composer == '--prefer-stable' && github.repository == 'flix-tech/avro-serde-php' }}
152152
uses: paambaati/codeclimate-action@v2.7.4
153153
env:
154154
CC_TEST_REPORTER_ID: ${{secrets.CODE_CLIMATE_REPORTER_ID}}

0 commit comments

Comments
 (0)