We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 608120f commit c228c4bCopy full SHA for c228c4b
src/api.ts
@@ -79,10 +79,8 @@ export async function getWorkflowId(workflowFilename: string): Promise<number> {
79
`Failed to get workflows, expected 200 but received ${response.status}`,
80
);
81
}
82
- // wrong type definition
83
- const workflows: typeof response.data.workflows = response.data;
84
85
- workflowId = workflows.find((workflow) =>
+ workflowId = response.data.find((workflow) =>
86
new RegExp(sanitisedFilename).test(workflow.path),
87
)?.id;
88
0 commit comments