File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ jobs:
263
263
with :
264
264
fetch-depth : 0
265
265
- name : Access to Metrics Service
266
- if : ${{ env.METRICS_SERVICE_SECRET != '' }} && (github.event.action != 'closed' || github.event.pull_request.merged)
266
+ if : github.event.pull_request.head.repo.full_name == github.repository && (github.event.action != 'closed' || github.event.pull_request.merged)
267
267
run : |
268
268
# Install gcloud sdk
269
269
curl https://sdk.cloud.google.com > install.sh
@@ -280,7 +280,7 @@ jobs:
280
280
with :
281
281
path : /Users/runner/test
282
282
- name : Compare Diff and Post a Report
283
- if : github.event.pull_request.merged != true && github.event.action != 'closed' && env.METRICS_SERVICE_SECRET != ''
283
+ if : github.event.pull_request.merged != true && github.event.action != 'closed' && github.event.pull_request.head.repo.full_name == github.repository
284
284
env :
285
285
base_commit : ${{ github.event.pull_request.base.sha }}
286
286
run : |
@@ -315,7 +315,7 @@ jobs:
315
315
bundle exec ruby post_incremental_coverage_in_pr.rb
316
316
fi
317
317
- name : Update New Coverage Data
318
- if : github.event.pull_request.merged && env.METRICS_SERVICE_SECRET != ''
318
+ if : github.event.pull_request.merged && github.event.pull_request.head.repo.full_name == github.repository
319
319
run : |
320
320
if [ -d "${{steps.download.outputs.download-path}}" ]; then
321
321
cd scripts/code_coverage_report/generate_code_coverage_report
You can’t perform that action at this time.
0 commit comments