Do not fail the build if metrics postprocessing or DataDog upload fails
This commit is contained in:
parent
899eed15ad
commit
301c384262
1 changed files with 6 additions and 0 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -239,6 +239,9 @@ jobs:
|
|||
if: github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1'
|
||||
|
||||
- name: postprocess metrics into the summary
|
||||
# This step is not critical, and if some I/O problem happens, we don't want
|
||||
# to cancel the build.
|
||||
continue-on-error: true
|
||||
run: |
|
||||
if [ -f build/metrics.json ]; then
|
||||
METRICS=build/metrics.json
|
||||
|
@ -253,6 +256,9 @@ jobs:
|
|||
${METRICS} ${GITHUB_STEP_SUMMARY}
|
||||
|
||||
- name: upload job metrics to DataDog
|
||||
# This step is not critical, and if some I/O problem happens, we don't want
|
||||
# to cancel the build.
|
||||
continue-on-error: true
|
||||
if: needs.calculate_matrix.outputs.run_type != 'pr'
|
||||
env:
|
||||
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue