correcting bug with async env

pull/496/head
Frostebite 2023-01-22 02:24:43 +00:00
parent 3d7d001156
commit c54786ae55
3 changed files with 5 additions and 5 deletions

4
dist/index.js generated vendored
View File

@ -6520,12 +6520,12 @@ class GitHub {
} }
static updateGitHubCheckRequest(data) { static updateGitHubCheckRequest(data) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
return yield GitHub.octokitDefaultToken.request(`PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}`, data); return yield GitHub.octokitPAT.request(`PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}`, data);
}); });
} }
static createGitHubCheckRequest(data) { static createGitHubCheckRequest(data) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
return yield GitHub.octokitDefaultToken.request(`POST /repos/{owner}/{repo}/check-runs`, data); return yield GitHub.octokitPAT.request(`POST /repos/{owner}/{repo}/check-runs`, data);
}); });
} }
static runUpdateAsyncChecksWorkflow(data, mode) { static runUpdateAsyncChecksWorkflow(data, mode) {

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -126,11 +126,11 @@ class GitHub {
} }
public static async updateGitHubCheckRequest(data) { public static async updateGitHubCheckRequest(data) {
return await GitHub.octokitDefaultToken.request(`PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}`, data); return await GitHub.octokitPAT.request(`PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}`, data);
} }
public static async createGitHubCheckRequest(data) { public static async createGitHubCheckRequest(data) {
return await GitHub.octokitDefaultToken.request(`POST /repos/{owner}/{repo}/check-runs`, data); return await GitHub.octokitPAT.request(`POST /repos/{owner}/{repo}/check-runs`, data);
} }
public static async runUpdateAsyncChecksWorkflow(data, mode) { public static async runUpdateAsyncChecksWorkflow(data, mode) {