Skip to content

Commit

Permalink
Change GitHub -> github.getOctokit
Browse files Browse the repository at this point in the history
  • Loading branch information
vj-abishek committed Jan 13, 2021
1 parent d80ea6a commit 8bd6514
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ const github = __nccwpck_require__(438);

const main = async () => {
try {
const ACCESS_TOKEN = core.getInput('ACCESS_TOKEN');

const { ACCESS_TOKEN } = process.env
if (!ACCESS_TOKEN)
return core.setFailed('ENV required and not supplied: ACCESS_TOKEN')


const octokit = github.getOctokit(ACCESS_TOKEN)

const payload = github.context.payload
Expand Down

0 comments on commit 8bd6514

Please sign in to comment.