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
@@ -284,7 +284,7 @@ jobs:
284284
285285 # Activate the service account for Metrics Service.
286286 scripts/decrypt_gha_secret.sh scripts/gha-encrypted/metrics_service_access.json.gpg \
287- metrics-access.json "${{ env. METRICS_SERVICE_SECRET } }"
287+ metrics-access.json "${METRICS_SERVICE_SECRET}"
288288 gcloud auth activate-service-account --key-file metrics-access.json
289289 - uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
290290 id : download
@@ -294,9 +294,10 @@ jobs:
294294 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'
295295 env :
296296 base_commit : ${{ needs.check.outputs.target_branch_head }}
297+ STEPS_DOWNLOAD_OUTPUTS_DOWNLOAD_PATH : ${{steps.download.outputs.download-path}}
297298 run : |
298299 # Get Head commit of the branch, instead of a merge commit created by actions/checkout.
299- if [ -d "${{steps.download.outputs.download-path} }" ]; then
300+ if [ -d "${STEPS_DOWNLOAD_OUTPUTS_DOWNLOAD_PATH }" ]; then
300301 cd scripts/health_metrics/generate_code_coverage_report
301302 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"
302303 fi
@@ -329,7 +330,9 @@ jobs:
329330 - name : Update New Coverage Data
330331 if : github.event.pull_request.merged && github.event.pull_request.head.repo.full_name == github.repository
331332 run : |
332- if [ -d "${{steps.download.outputs.download-path} }" ]; then
333+ if [ -d "${STEPS_DOWNLOAD_OUTPUTS_DOWNLOAD_PATH }" ]; then
333334 cd scripts/health_metrics/generate_code_coverage_report
334- 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 } }"
335+ 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 }"
335336 fi
337+ env :
338+ STEPS_DOWNLOAD_OUTPUTS_DOWNLOAD_PATH : ${{steps.download.outputs.download-path}}
0 commit comments