fix octokit init

This commit is contained in:
jpaul 2023-11-07 16:40:32 +01:00
parent 26baf45152
commit 085f6ea87b
3 changed files with 9 additions and 0 deletions

3
dist/cleanup/index.js generated vendored
View File

@ -74455,6 +74455,9 @@ function generateReports() {
const buildOutput = JSON.parse(fs.readFileSync(BUILD_OUTPUT_JSON_PATH, 'utf8'));
const octokit = new rest_1.Octokit({
auth: c.INPUT_GITHUB_TOKEN,
request: {
fetch: fetch,
},
});
const contentEncoded = js_base64_1.Base64.encode(JSON.stringify(buildOutput));
const { data } = yield octokit.repos.createOrUpdateFileContents({

3
dist/main/index.js generated vendored
View File

@ -74554,6 +74554,9 @@ function generateReports() {
const buildOutput = JSON.parse(fs.readFileSync(BUILD_OUTPUT_JSON_PATH, 'utf8'));
const octokit = new rest_1.Octokit({
auth: c.INPUT_GITHUB_TOKEN,
request: {
fetch: fetch,
},
});
const contentEncoded = js_base64_1.Base64.encode(JSON.stringify(buildOutput));
const { data } = yield octokit.repos.createOrUpdateFileContents({

View File

@ -135,6 +135,9 @@ export async function generateReports(): Promise<void> {
const octokit = new Octokit({
auth: c.INPUT_GITHUB_TOKEN,
request: {
fetch: fetch,
},
});
const contentEncoded = Base64.encode(JSON.stringify(buildOutput))