Skip to content

Commit

Permalink
🩹 Add fix for potential empty details (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
stoe authored Jun 8, 2023
1 parent fca160e commit 8f63641
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions utils/reporting.js
Original file line number Diff line number Diff line change
Expand Up @@ -799,12 +799,12 @@ ${dim('(this could take a while...)')}`)
actions.map(i => {
const csvData = [i.owner, i.repo, i.name, i.workflow, i.state, i.created_at, i.updated_at, i.last_run_at]

if (getListeners) csvData.push(i.listeners.join(', '))
if (getPermissions) csvData.push(i.permissions.join(', '))
if (getRunsOn) csvData.push(i.runsOn.join(', '))
if (getSecrets) csvData.push(i.secrets.join(', '))
if (getListeners && i.listeners) csvData.push(i.listeners.join(', '))
if (getPermissions && i.permissions) csvData.push(i.permissions.join(', '))
if (getRunsOn && i.runsOn) csvData.push(i.runsOn.join(', '))
if (getSecrets && i.secrets) csvData.push(i.secrets.join(', '))
if (getUses && i.uses) csvData.push(i.uses.join(', '))
if (getVars) csvData.push(i.vars.join(', '))
if (getVars && i.vars) csvData.push(i.vars.join(', '))

return csvData
}),
Expand Down

0 comments on commit 8f63641

Please sign in to comment.