mirror of
https://github.com/actions/github-script.git
synced 2025-12-08 08:06:23 +00:00
Add core to the script context
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -9178,7 +9178,7 @@ async function main() {
|
||||
const github = new lib_github.GitHub(token, opts);
|
||||
const script = Object(core.getInput)('script', { required: true });
|
||||
// Using property/value shorthand on `require` (e.g. `{require}`) causes compilatin errors.
|
||||
const result = await callAsyncFunction({ require: __webpack_require__(875), github, context: lib_github.context }, script);
|
||||
const result = await callAsyncFunction({ require: __webpack_require__(875), github, context: lib_github.context, core: core }, script);
|
||||
let encoding = Object(core.getInput)('result-encoding');
|
||||
encoding = encoding ? encoding : 'json';
|
||||
let output;
|
||||
|
||||
@@ -19,7 +19,7 @@ async function main() {
|
||||
|
||||
// Using property/value shorthand on `require` (e.g. `{require}`) causes compilatin errors.
|
||||
const result = await callAsyncFunction(
|
||||
{require: require, github, context},
|
||||
{require: require, github, context, core},
|
||||
script
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user