Skip to content

Commit 4ac113a

Browse files
authored
Update cov to not to be triggered by external developers. (#7855)
1 parent 6078685 commit 4ac113a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test_coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ jobs:
297297
with:
298298
path: /Users/runner/test
299299
- name: Compare Diff and Post a Report
300-
if: github.event_name == 'pull_request' && ${{ env.METRICS_SERVICE_SECRET }}
300+
if: github.event.pull_request.merged != true && env.METRICS_SERVICE_SECRET
301301
env:
302302
base_commit: ${{ needs.check.outputs.base_commit }}
303303
run: |
@@ -308,7 +308,7 @@ jobs:
308308
swift run CoverageReportGenerator --presubmit "firebase/firebase-ios-sdk" --commit "${GITHUB_SHA}" --token $(gcloud auth print-identity-token) --xcresult-dir "/Users/runner/test/codecoverage" --log-link "https://github.com/firebase/firebase-ios-sdk/actions/runs/${GITHUB_RUN_ID}" --pull-request-num ${{github.event.pull_request.number}} --base-commit "$base_commit"
309309
fi
310310
- name: Update New Coverage Data
311-
if: github.event.pull_request.merged == true && ${{ env.METRICS_SERVICE_SECRET }}
311+
if: github.event.pull_request.merged == true && env.METRICS_SERVICE_SECRET
312312
run: |
313313
if [ -d "${{steps.download.outputs.download-path}}" ]; then
314314
cd scripts/code_coverage_report/generate_code_coverage_report

0 commit comments

Comments
 (0)