Skip to content

Commit ae88514

Browse files
committed
chore: move debug statements to main
1 parent 781bc0f commit ae88514

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export async function run(): Promise<void> {
1919
})
2020

2121
core.debug(`Path to OpenAPI: ${pathToOpenApi}`)
22+
core.debug(`GitHub repo: ${process.env.GITHUB_REPOSITORY}`)
23+
core.debug(`GitHub repo ID: ${process.env.GITHUB_REPOSITORY_ID}`)
2224

2325
core.debug(`Upload started: ${new Date().toTimeString()}`)
2426
await upload(pathToOpenApi, heyApiToken, dryRun)

src/upload.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as core from '@actions/core'
21
import { readFileSync } from 'node:fs'
32

43
/**
@@ -34,9 +33,6 @@ export async function upload(
3433
formData['dry-run'] = dryRun
3534
}
3635

37-
core.debug(`GitHub repo: ${process.env.GITHUB_REPOSITORY}`)
38-
core.debug(`GitHub repo ID: ${process.env.GITHUB_REPOSITORY_ID}`)
39-
4036
const body = Object.entries(formData)
4137
.flatMap(
4238
([key, value]) =>

0 commit comments

Comments
 (0)