Skip to content

Commit

Permalink
Use getOctokit directly
Browse files Browse the repository at this point in the history
  • Loading branch information
wms committed Oct 13, 2022
1 parent 100c2e0 commit f9419f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
@@ -1,13 +1,13 @@
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<void> {
try {
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}),
Expand Down

0 comments on commit f9419f6

Please sign in to comment.