Skip to content

Commit

Permalink
log webhook payload if action step debug enabled
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
CrazyMax committed Apr 25, 2022
1 parent e1a45f6 commit 89bf6c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ async function run() {
core.info(`runId: ${context.runId}`);
core.endGroup();

if (core.isDebug()) {
core.startGroup(`Webhook payload`);
core.info(JSON.stringify(context.payload, null, 2));
core.endGroup();
}

const meta: Meta = new Meta(inputs, context, repo);

const version: Version = meta.version;
Expand Down

0 comments on commit 89bf6c0

Please sign in to comment.