File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,9 @@ jobs:
106
106
run : make test-unit && make test-functional
107
107
108
108
# Upload to codacy first as codecov action always remove coverage files despite move_coverage_to_trash at false
109
+ # And only if it's not a PR from a fork => Can't work as codacy secret is not accessible in that context
109
110
- name : Upload coverages to Codacy
110
- if : ${{ env.COVERAGE_TYPE == 'xdebug' }}
111
+ if : ${{ github.event.pull_request.head.repo.full_name == 'yoanm/symfony-jsonrpc-http-server' && env.COVERAGE_TYPE == 'xdebug' }}
111
112
run : ${{ env.CODACY_BIN }} report -r build/coverage-phpunit/unit.clover -r build/coverage-behat/clover.xml -r build/coverage-phpunit/functional.clover -t ${{ secrets.CODACY_PROJECT_TOKEN }} --partial
112
113
113
114
# See the reports at https://codecov.io/gh/yoanm/symfony-jsonrpc-http-server
@@ -172,6 +173,7 @@ jobs:
172
173
finalize-codacy-coverage-report :
173
174
runs-on : ubuntu-latest
174
175
name : Finalize Codacy coverage report
176
+ if : ${{ github.event.pull_request.head.repo.full_name == 'yoanm/symfony-jsonrpc-http-server' }}
175
177
needs : [ tests ]
176
178
steps :
177
179
- name : Setup cache
You can’t perform that action at this time.
0 commit comments