Merge branch 'main' into henrymercer/simplify-actions-only

This commit is contained in:
Henry Mercer 2024-07-02 15:52:14 +02:00
commit 2d3d0ca0c7
808 changed files with 37371 additions and 2397 deletions

7
lib/api-client.js generated
View file

@ -123,6 +123,13 @@ async function getWorkflowRelativePath() {
run_id,
});
const workflowUrl = runsResponse.data.workflow_url;
const requiredWorkflowRegex = /\/repos\/[^/]+\/[^/]+\/actions\/required_workflows\/[^/]+/;
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.
return runsResponse.data.path;
}
const workflowResponse = await apiClient.request(`GET ${workflowUrl}`);
return workflowResponse.data.path;
}

File diff suppressed because one or more lines are too long