Skip to content

Commit

Permalink
fix token ref
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-8 committed Dec 17, 2019
1 parent 8538e88 commit fd2c6c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ async function run() {
const { full_name: repoFullName } = repository;
const [owner, repo] = repoFullName.split("/");

const octokit = new github.GitHub(token);
const octokit = new github.GitHub(inputs.token);

const data = fs.readFileSync(`${process.env.GITHUB_WORKSPACE}/${inputs.path}`, 'utf8');
const json = JSON.parse(data);
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function run() {
const { full_name: repoFullName } = repository;
const [owner, repo] = repoFullName.split("/");

const octokit = new github.GitHub(token);
const octokit = new github.GitHub(inputs.token);

const data = fs.readFileSync(`${process.env.GITHUB_WORKSPACE}/${inputs.path}`, 'utf8');
const json = JSON.parse(data);
Expand Down

0 comments on commit fd2c6c2

Please sign in to comment.