Skip to content

Commit 088f9c1

Browse files
authored
Update merge branch in the Metrics Service (#8146)
GITHUB_REF will get a 'merge' branch due to pull_request , instead of a `master` branch. `github.head_ref` could fetch the merged branch, e.g. `master`. https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context
1 parent 666a86a commit 088f9c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test_coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,5 +292,5 @@ jobs:
292292
run: |
293293
if [ -d "${{steps.download.outputs.download-path}}" ]; then
294294
cd scripts/code_coverage_report/generate_code_coverage_report
295-
swift run CoverageReportGenerator --merge "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}" --branch "${GITHUB_REF##*/}"
295+
swift run CoverageReportGenerator --merge "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}" --branch "${{ github.head_ref }}"
296296
fi

0 commit comments

Comments
 (0)