Fix invalid api call for local run

This commit is contained in:
Simon Engledew
2020-11-03 13:44:39 +00:00
parent b88c216104
commit 4aa75fb254
3 changed files with 8 additions and 1 deletions
+3
View File
@@ -99,6 +99,9 @@ async function getWorkflowPath() {
const owner = repo_nwo[0];
const repo = repo_nwo[1];
const run_id = Number(getRequiredEnvParam("GITHUB_RUN_ID"));
if (util_1.isLocalRun()) {
return 'n/a';
}
const apiClient = api.getActionsApiClient();
const runsResponse = await apiClient.request("GET /repos/:owner/:repo/actions/runs/:run_id", {
owner,
File diff suppressed because one or more lines are too long