Skip to content

Commit

Permalink
Update octokit instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
duncaan committed Apr 2, 2024
1 parent cc7ec09 commit 378b97f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ if (!fs.existsSync(`${__dirname}/node_modules`)) {
const github = require('@actions/github');
const action = require('./lib/action');

const octokit = github.GitHub(process.env.GITHUB_TOKEN);
const octokit = github.getOctokit(process.env.GITHUB_TOKEN);

action(github.context, octokit);

0 comments on commit 378b97f

Please sign in to comment.