Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 71fcc90

Browse files
committed
Pass "require" to function context
1 parent d910cb8 commit 71fcc90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ async function main() {
1616
if (previews != null) opts.previews = previews.split(',')
1717
const client = new GitHub(token, opts)
1818
const script = core.getInput('script', {required: true})
19-
const fn = new AsyncFunction('github', 'context', script)
20-
const result = await fn(client, context)
19+
const fn = new AsyncFunction('require', 'github', 'context', script)
20+
const result = await fn(require, client, context)
2121
core.setOutput('result', JSON.stringify(result))
2222
}
2323

0 commit comments

Comments
 (0)