diff --git a/src/main.ts b/src/main.ts index 071a15c..7622fde 100644 --- a/src/main.ts +++ b/src/main.ts @@ -19,6 +19,8 @@ export async function run(): Promise { }) core.debug(`Path to OpenAPI: ${pathToOpenApi}`) + core.debug(`GitHub repo: ${process.env.GITHUB_REPOSITORY}`) + core.debug(`GitHub repo ID: ${process.env.GITHUB_REPOSITORY_ID}`) core.debug(`Upload started: ${new Date().toTimeString()}`) await upload(pathToOpenApi, heyApiToken, dryRun) diff --git a/src/upload.ts b/src/upload.ts index 585411e..2a44be6 100644 --- a/src/upload.ts +++ b/src/upload.ts @@ -1,4 +1,3 @@ -import * as core from '@actions/core' import { readFileSync } from 'node:fs' /** @@ -34,9 +33,6 @@ export async function upload( formData['dry-run'] = dryRun } - core.debug(`GitHub repo: ${process.env.GITHUB_REPOSITORY}`) - core.debug(`GitHub repo ID: ${process.env.GITHUB_REPOSITORY_ID}`) - const body = Object.entries(formData) .flatMap( ([key, value]) =>