Skip to content

Commit

Permalink
14568
Browse files Browse the repository at this point in the history
  • Loading branch information
LamaAni committed Feb 12, 2021
1 parent 3c6c704 commit 1cf2da0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion parse_commit_args.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,13 @@ async function do_run_env_script(args) {
}

async function parse_args(context = null) {
const args = await new CommitArgs().load_context(context || github.context)
context = context || github.context
if (PRINT_GITHUB_CONTEXT) {
console.log('-----------------------------------')
console.log(JSON.stringify(context, null, 2))
console.log('-----------------------------------')
}
const args = await new CommitArgs().load_context(context)

await do_run_env_script(args)
if (process.env.RUN_SCRIPT_FILE != null) {
Expand Down

0 comments on commit 1cf2da0

Please sign in to comment.