diff --git a/src/main.ts b/src/main.ts index 5fb86ed..c4002fb 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,5 +1,5 @@ import * as core from '@actions/core' -import github, {context} from '@actions/github' +import {getOctokit, context} from '@actions/github' import {poll} from './poll' async function run(): Promise { @@ -7,7 +7,7 @@ async function run(): Promise { const token = core.getInput('token', {required: true}) const result = await poll({ - client: github.getOctokit(token), + client: getOctokit(token), log: msg => core.info(msg), checkName: core.getInput('checkName', {required: true}),