Skip to content

Commit c401cdb

Browse files
committed
toString fun
1 parent 07c44fb commit c401cdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async function run(): Promise<void> {
3434
// Locate workflow by name as we need it's id
3535
const foundWorkflow = listResp.data.workflows.find((wf: Record<string, string>) => {
3636
// Match on name or id
37-
return (wf['name'] === workflowReference || wf['id'] === workflowReference)
37+
return (wf['name'] === workflowReference || wf['id'].toString() === workflowReference)
3838
})
3939
if(!foundWorkflow) throw new Error(`Unable to find workflow '${workflowReference}' in ${repo} 😥`)
4040

0 commit comments

Comments
 (0)