Skip to content

Commit 0ff1bdb

Browse files
Update src/api-client.ts
Co-authored-by: Andrew Eisenberg <[email protected]>
1 parent 37b6ead commit 0ff1bdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export async function getWorkflowRelativePath(): Promise<string> {
140140
const workflowUrl = runsResponse.data.workflow_url;
141141

142142
const requiredWorkflowRegex = /\/repos\/[^/]+\/[^/]+\/actions\/required_workflows\/[^/]+/;
143-
if (!workflowUrl || workflowUrl === "" || requiredWorkflowRegex.test(workflowUrl)) {
143+
if (!workflowUrl || requiredWorkflowRegex.test(workflowUrl)) {
144144
// For required workflows, the workflowUrl is invalid so we cannot fetch more informations
145145
// about the workflow.
146146
// However, the path is available in the original response.

0 commit comments

Comments
 (0)