From 0ff1bdba7fdc5fb3f90d576facf1759c7c59a6c3 Mon Sep 17 00:00:00 2001 From: Marco Gario Date: Mon, 1 Jul 2024 11:01:12 +0200 Subject: [PATCH] Update src/api-client.ts Co-authored-by: Andrew Eisenberg --- src/api-client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.