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
crazy-max committed Apr 21, 2022
1 parent 1bf3ef7 commit d9bed0b
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 d9bed0b

Please sign in to comment.