Skip to content

Commit

Permalink
Merge pull request #301 from pagarme/fixes-logging
Browse files Browse the repository at this point in the history
fix: remove logging
  • Loading branch information
jmaraujo authored Jun 30, 2023
2 parents d7fde17 + 9903b09 commit 89a64bb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
9 changes: 0 additions & 9 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.

10 changes: 1 addition & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,10 @@ async function run() {
client,
})

core.info(`Task definition from task ${taskDef}`)

const replacements = core.getInput('replacements') || '{}'
const taskDefMerged = merge(taskDef, JSON.parse(replacements))
core.info(`Task definition merged ${taskDefMerged}`)

const newTaskDef = omit(taskDefMerged, IGNORED_TASK_DEFINITION_ATTRIBUTES)
core.info(`Task definition merged and cleaned ${newTaskDef}`)

// create a a file for task def
const taskDefFile = tmp.fileSync({
Expand All @@ -105,13 +101,9 @@ async function run() {
client,
})

core.info(`Task definition from task ${taskDef}`)

const replacements = core.getInput('replacements') || '{}'
const taskDefMerged = merge(taskDef, JSON.parse(replacements))

const newTaskDef = omit(taskDefMerged, IGNORED_TASK_DEFINITION_ATTRIBUTES)
core.info(`Task definition merged and cleaned ${newTaskDef}`)

console.dir(newTaskDef)

Expand All @@ -131,4 +123,4 @@ async function run() {
}
}

run()
run()

0 comments on commit 89a64bb

Please sign in to comment.