Skip to content

Commit 75f0f74

Browse files
committed
fix: use the new getOctokit way to access GitHub instance
1 parent 5d75af6 commit 75f0f74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
const core = require('@actions/core')
4-
const { GitHub, context } = require('@actions/github')
4+
const { getOctokit, context } = require('@actions/github')
55

66
const main = async () => {
77
const token = core.getInput('github-token', {
@@ -26,7 +26,7 @@ const main = async () => {
2626
required: false
2727
});// merge|squash|rebase|fast-forward
2828

29-
const octokit = new GitHub(token);
29+
const octokit = getOctokit(token);
3030

3131
if (!context.actor.match(allowed_usernames)) {
3232
core.warning('Ignored, the username does not match.');

0 commit comments

Comments
 (0)