Skip to content

Commit e7a078c

Browse files
authored
Disable code coverage for external developers (#8246)
1 parent 2ec4dbd commit e7a078c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test_coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ jobs:
263263
with:
264264
fetch-depth: 0
265265
- name: Access to Metrics Service
266-
if: ${{ env.METRICS_SERVICE_SECRET }} && (github.event.action != 'closed' || github.event.pull_request.merged)
266+
if: ${{ env.METRICS_SERVICE_SECRET != '' }} && (github.event.action != 'closed' || github.event.pull_request.merged)
267267
run: |
268268
# Install gcloud sdk
269269
curl https://sdk.cloud.google.com > install.sh
@@ -280,7 +280,7 @@ jobs:
280280
with:
281281
path: /Users/runner/test
282282
- 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' && env.METRICS_SERVICE_SECRET != ''
284284
env:
285285
base_commit: ${{ needs.check.outputs.base_commit }}
286286
run: |
@@ -316,7 +316,7 @@ jobs:
316316
bundle exec ruby post_incremental_coverage_in_pr.rb
317317
fi
318318
- name: Update New Coverage Data
319-
if: github.event.pull_request.merged && env.METRICS_SERVICE_SECRET
319+
if: github.event.pull_request.merged && env.METRICS_SERVICE_SECRET != ''
320320
run: |
321321
if [ -d "${{steps.download.outputs.download-path}}" ]; then
322322
cd scripts/code_coverage_report/generate_code_coverage_report

0 commit comments

Comments
 (0)