Skip to content

Commit

Permalink
Protect against undefs
Browse files Browse the repository at this point in the history
  • Loading branch information
islas committed Dec 6, 2024
1 parent 7bd2e02 commit 713e87f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'
Expand Down

0 comments on commit 713e87f

Please sign in to comment.