Skip to content

Commit

Permalink
fix(main.ts): removed console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-ra committed Jul 24, 2023
1 parent 4819e6b commit e7e0caf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
8 changes: 4 additions & 4 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.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "TypeScript template action",
"main": "lib/main.js",
"scripts": {
"build": "tsc",
"build": "rm -rf dist && tsc",
"format": "prettier --write '**/*.ts'",
"format-check": "prettier --check '**/*.ts'",
"lint": "eslint src/**/*.ts",
Expand Down
9 changes: 4 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {installKubectl} from './handlers/install-kubectl'
import {setupKubectlConfig} from './handlers/setup-kubectl-config'
import {execSync} from 'child_process'
import {repositoryDirectory} from './constants/repositoryDirectory'
import {errorHandler} from './helpers/error-handler'

async function run(): Promise<void> {
try {
Expand All @@ -12,9 +13,7 @@ async function run(): Promise<void> {
trimWhitespace: true
})

console.log(
execSync('ls', {stdio: 'inherit', cwd: repositoryDirectory}).toString()
)
execSync('ls', {stdio: 'inherit', cwd: repositoryDirectory})

const valuesPath = core.getInput('valuesPath', {required: true})
const context = core.getInput('context', {required: true})
Expand All @@ -27,8 +26,8 @@ async function run(): Promise<void> {

return
} catch (error) {
if (error instanceof Error) core.setFailed(error.message)
throw error
core.error('Problem in releasing your helm chart')
errorHandler(error)
}
}

Expand Down

0 comments on commit e7e0caf

Please sign in to comment.