diff --git a/src/async-function.ts b/src/async-function.ts index 84035f222..7f928b4ca 100644 --- a/src/async-function.ts +++ b/src/async-function.ts @@ -1,5 +1,6 @@ import * as core from '@actions/core' import * as exec from '@actions/exec' +import {getOctokit} from '@actions/github' import {Context} from '@actions/github/lib/context' import {GitHub} from '@actions/github/lib/utils' import * as glob from '@actions/glob' @@ -12,6 +13,7 @@ export declare type AsyncFunctionArguments = { core: typeof core github: InstanceType octokit: InstanceType + getOctokit: typeof getOctokit exec: typeof exec glob: typeof glob io: typeof io diff --git a/src/main.ts b/src/main.ts index cbf65693c..a01e1b74e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -66,6 +66,7 @@ async function main(): Promise { __original_require__: __non_webpack_require__, github, octokit: github, + getOctokit, context, core, exec, diff --git a/types/async-function.d.ts b/types/async-function.d.ts index b204e3639..3c2de8e28 100644 --- a/types/async-function.d.ts +++ b/types/async-function.d.ts @@ -1,6 +1,7 @@ /// import * as core from '@actions/core'; import * as exec from '@actions/exec'; +import { getOctokit } from '@actions/github'; import { Context } from '@actions/github/lib/context'; import { GitHub } from '@actions/github/lib/utils'; import * as glob from '@actions/glob'; @@ -10,6 +11,7 @@ export declare type AsyncFunctionArguments = { core: typeof core; github: InstanceType; octokit: InstanceType; + getOctokit: typeof getOctokit; exec: typeof exec; glob: typeof glob; io: typeof io;