Update src/api-client.ts
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
This commit is contained in:
parent
37b6ead477
commit
0ff1bdba7f
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ export async function getWorkflowRelativePath(): Promise<string> {
|
|||
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue