From ae885141fef99c2c304d706dd07ef326daf53032 Mon Sep 17 00:00:00 2001 From: Lubos Date: Wed, 17 Apr 2024 08:39:09 +0100 Subject: [PATCH] chore: move debug statements to main --- src/main.ts | 2 ++ src/upload.ts | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) 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]) =>