Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Commit ab60d22

Browse files
committed
Add metadata input to run func
1 parent 9ae3c36 commit ab60d22

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

dist/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,7 @@ parseDependents = function (contents) {
7272
});
7373
return entries;
7474
};
75-
const metadata = {
76-
foo: 1.0,
77-
bar: false,
78-
baz: 'somethingsomething',
79-
nullz: null
80-
};
75+
const metadata = JSON.parse(core.getInput('metadata'));
8176
const detector = {
8277
name: core.getInput('detector-name'),
8378
url: core.getInput('detector-url'),

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,7 @@ parseDependents = function (contents: string) {
5050
return entries
5151
}
5252

53-
const metadata = {
54-
foo: 1.0,
55-
bar: false,
56-
baz: 'somethingsomething',
57-
nullz: null
58-
}
53+
const metadata = JSON.parse(core.getInput('metadata'))
5954
const detector = {
6055
name: core.getInput('detector-name'),
6156
url: core.getInput('detector-url'),

0 commit comments

Comments
 (0)