Skip to content

Commit

Permalink
fix: empty commit for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed Jul 11, 2022
1 parent 4871a85 commit 97f34a4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/actions/pipeline-config-scrapper/index.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions src/actions/pipeline-config-scrapper/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
const _ = require("lodash");
const path = require("path");
const core = require("@actions/core");
const glob = require("@actions/glob");
const github = require("@actions/github");

const scrappers = require('./src')
Expand All @@ -27,6 +24,7 @@ async function action() {
await scrappers.git(analysis)
await scrappers.run(analysis)

core.setOutput("event", analysis.event);
core.setOutput("analysis", JSON.stringify(analysis, null, 2));
analysis.actor = github.context.actor;

Expand Down
4 changes: 3 additions & 1 deletion src/actions/pipeline-config-scrapper/src/git.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module.exports = async (analysis) => {
const github = require("@actions/github");

module.exports = async (analysis) => {
analysis.event = github.context.eventName
}

0 comments on commit 97f34a4

Please sign in to comment.