diff --git a/src/api-client.ts b/src/api-client.ts index a1e7c36dd..33960fc56 100644 --- a/src/api-client.ts +++ b/src/api-client.ts @@ -140,7 +140,7 @@ export async function getWorkflowRelativePath(): Promise { const workflowUrl = runsResponse.data.workflow_url; const requiredWorkflowRegex = /\/repos\/[^/]+\/[^/]+\/actions\/required_workflows\/[^/]+/; - if (!workflowUrl || workflowUrl === "" || requiredWorkflowRegex.test(workflowUrl)) { + if (!workflowUrl || requiredWorkflowRegex.test(workflowUrl)) { // For required workflows, the workflowUrl is invalid so we cannot fetch more informations // about the workflow. // However, the path is available in the original response.