Skip to content

Commit

Permalink
feat: added dispatch command
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed Aug 9, 2022
1 parent 8050232 commit 694eb79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/actions/config-scrapper/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/actions/config-scrapper/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/actions/config-scrapper/src/dispatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const core = require("@actions/core");
const github = require("@actions/github");

module.exports = async (analysis) => {
let environment = core.getInput('environment', { required: true });
let { environment } = github.context.payload

analysis.environment = environment
analysis.outputs.environment = environment
}

0 comments on commit 694eb79

Please sign in to comment.