5353 env :
5454 pr_branch : ${{ github.event.pull_request.head.ref }}
5555 run : |
56- if [ ! -z "${{ env. METRICS_SERVICE_SECRET } }" ]; then
56+ if [ ! -z "${METRICS_SERVICE_SECRET}" ]; then
5757 ./scripts/health_metrics/get_updated_files.sh
5858 fi
5959
@@ -312,7 +312,7 @@ jobs:
312312
313313 # Activate the service account for Metrics Service.
314314 scripts/decrypt_gha_secret.sh scripts/gha-encrypted/metrics_service_access.json.gpg \
315- metrics-access.json "${{ env. METRICS_SERVICE_SECRET } }"
315+ metrics-access.json "${METRICS_SERVICE_SECRET}"
316316 gcloud auth activate-service-account --key-file metrics-access.json
317317 - uses : actions/download-artifact@v4.1.7
318318 id : download
@@ -322,9 +322,10 @@ jobs:
322322 if : github.event.pull_request.merged != true && github.event.action != 'closed' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.ref == 'main'
323323 env :
324324 base_commit : ${{ needs.check.outputs.target_branch_head }}
325+ STEPS_DOWNLOAD_OUTPUTS_DOWNLOAD_PATH : ${{steps.download.outputs.download-path}}
325326 run : |
326327 # Get Head commit of the branch, instead of a merge commit created by actions/checkout.
327- if [ -d "${{steps.download.outputs.download-path} }" ]; then
328+ if [ -d "${STEPS_DOWNLOAD_OUTPUTS_DOWNLOAD_PATH }" ]; then
328329 cd scripts/health_metrics/generate_code_coverage_report
329330 swift run CoverageReportGenerator --presubmit "firebase/firebase-ios-sdk" --head-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"
330331 fi
@@ -357,7 +358,9 @@ jobs:
357358 - name : Update New Coverage Data
358359 if : github.event.pull_request.merged && github.event.pull_request.head.repo.full_name == github.repository
359360 run : |
360- if [ -d "${{steps.download.outputs.download-path} }" ]; then
361+ if [ -d "${STEPS_DOWNLOAD_OUTPUTS_DOWNLOAD_PATH }" ]; then
361362 cd scripts/health_metrics/generate_code_coverage_report
362- swift run CoverageReportGenerator --merge "firebase/firebase-ios-sdk" --head-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}" --source-branch "${{ github.base_ref } }"
363+ swift run CoverageReportGenerator --merge "firebase/firebase-ios-sdk" --head-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}" --source-branch "${GITHUB_BASE_REF }"
363364 fi
365+ env :
366+ STEPS_DOWNLOAD_OUTPUTS_DOWNLOAD_PATH : ${{steps.download.outputs.download-path}}
0 commit comments