Skip to content

Commit

Permalink
chore: remove debug lines (#2166)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Action <[email protected]>
  • Loading branch information
jackton1 and actions-user authored Jun 24, 2024
1 parent 0b99ecf commit cc73385
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 34 deletions.
28 changes: 1 addition & 27 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions src/env.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import * as core from '@actions/core'

export type Env = {
GITHUB_REF_NAME: string
GITHUB_REF: string
GITHUB_WORKSPACE: string
}

export const getEnv = async (): Promise<Env> => {
core.debug(`Env: ${JSON.stringify(process.env, null, 2)}`)

return {
GITHUB_REF_NAME: process.env.GITHUB_REF_NAME || '',
GITHUB_REF: process.env.GITHUB_REF || '',
Expand Down
2 changes: 0 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,6 @@ export async function run(): Promise<void> {
const inputs = getInputs()
core.debug(`Inputs: ${JSON.stringify(inputs, null, 2)}`)

core.debug(`Github Context: ${JSON.stringify(github.context, null, 2)}`)

const workingDirectory = path.resolve(
env.GITHUB_WORKSPACE || process.cwd(),
inputs.useRestApi ? '.' : inputs.path
Expand Down

0 comments on commit cc73385

Please sign in to comment.