Skip to content

Commit

Permalink
chore: move debug statements to main
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlubos committed Apr 17, 2024
1 parent 781bc0f commit ae88514
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export async function run(): Promise<void> {
})

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)
Expand Down
4 changes: 0 additions & 4 deletions src/upload.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as core from '@actions/core'
import { readFileSync } from 'node:fs'

/**
Expand Down Expand Up @@ -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]) =>
Expand Down

0 comments on commit ae88514

Please sign in to comment.