Fix round-robin CI script when state issue has no assignees (#1930)

This commit is contained in:
Anuraag (Rag) Agrawal 2025-07-16 01:47:51 +09:00 committed by GitHub
parent 2b1e361eac
commit ead90f6f71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo
});
return issue.data.assignees[0].login || '';
return (issue.data.assignees && issue.data.assignees[0].login) || '';
- name: Dump last assigned
env:
LAST_ASSIGNED: ${{ steps.assigned.outputs.result }}