We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 746bdff commit 6591b60Copy full SHA for 6591b60
1 file changed
src/workflows/purge-old-workflow-runs.ts
@@ -155,11 +155,11 @@ async function deleteWorkflowRuns(
155
created: minCreatedSearch,
156
},
157
)
158
- const runs = data.workflow_runs
+ const runs = data.workflow_runs || []
159
console.log(
160
`Total runs in workflow "${
161
workflow.name
162
- }" (${minCreatedSearch}): ${data.total_count.toLocaleString()}`,
+ }" (${minCreatedSearch}): ${(data.total_count || 0).toLocaleString()}`,
163
164
165
let deletions = 0
0 commit comments