From 713e87fefffdefc0da32046703ca4ace15fd48bd Mon Sep 17 00:00:00 2001 From: Anthony Islas Date: Fri, 6 Dec 2024 15:17:19 -0700 Subject: [PATCH] Protect against undefs --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc3febda1f..836b0ed92c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -167,11 +167,12 @@ jobs: check_name : '${{ inputs.test }}' }) - if ( checks.check_runs.length > 0 ) + if ( checks?.check_runs?.length > 0 ) { github.rest.checks.update({ owner: context.repo.owner, repo: context.repo.repo, + ref: context.sha, check_run_id: checks.check_runs[0].id, status:'in_progress', details_url: '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'