fix: Theme preview script (#318)

* chore: testing theme preview script

* fix: workflow

* test current pr

* comment on pr script

* fix: preview theme script

* fix: preview theme

* fix: token fix

* test: theme

* fix: conflict
This commit is contained in:
Anurag Hazra
2020-08-05 21:57:11 +05:30
committed by GitHub
parent ce8660c825
commit 20463f6365
3 changed files with 7 additions and 5 deletions

View File

@ -15,7 +15,8 @@ const parsePullRequestId = (githubRef) => {
async function run() {
try {
const octokit = github.getOctokit(process.env.PERSONAL_TOKEN);
const token = core.getInput("token");
const octokit = github.getOctokit(token || process.env.PERSONAL_TOKEN);
const pullRequestId = parsePullRequestId(process.env.GITHUB_REF);
let res = await octokit.pulls.get({