Skip to content

Commit

Permalink
plot payload field
Browse files Browse the repository at this point in the history
  • Loading branch information
StRigaud committed Sep 5, 2024
1 parent 09fc19f commit ce52bce
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,12 @@ module.exports = (app) => {
// must contain a release_tag as input (can be a branch name)
app.on("workflow_dispatch", async (context) => {

context.log.info('context:', context);
const { repository, workflow, inputs, sender } = context.payload;

context.log.info(`Workflow dispatch event for repository: ${repository.name}`);
context.log.info(`Workflow name: ${workflow}`);
context.log.info(`Inputs: ${JSON.stringify(inputs)}`);
context.log.info(`Triggered by: ${sender.login}`);


});
Expand Down
7 changes: 7 additions & 0 deletions dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -117310,6 +117310,13 @@ module.exports = (app) => {

context.log.info('context:', context);

const { repository, workflow, inputs, sender } = context.payload;

context.log.info(`Workflow dispatch event for repository: ${repository.name}`);
context.log.info(`Workflow name: ${workflow}`);
context.log.info(`Inputs: ${JSON.stringify(inputs)}`);
context.log.info(`Triggered by: ${sender.login}`);


});

Expand Down

0 comments on commit ce52bce

Please sign in to comment.