Skip to content

Commit

Permalink
Add: Log
Browse files Browse the repository at this point in the history
  • Loading branch information
edelciomolina committed Dec 6, 2023
1 parent ffd3d53 commit 751a6a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,12 @@ var Generate = (() => {

// Escreve o objeto no arquivo bundleconfig.json
function appendObjectToFile(str) {
core.info(bundle_config_file)
if (!fs.existsSync(bundle_config_file)) {
core.info('new')
fs.writeFileSync(bundle_config_file, str)
} else {
core.info('append')
fs.appendFileSync(bundle_config_file, str)
}
}
Expand Down

0 comments on commit 751a6a3

Please sign in to comment.