Skip to content

Commit ca98c6b

Browse files
committed
ci: fix theme preview action
1 parent 7bc8f19 commit ca98c6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/preview-theme.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ const INVALID_REVIEW_COMMENT = (commentUrl) =>
4646

4747
// Retrieve octokit instance.
4848
const OCTOKIT = github.getOctokit(getGithubToken());
49-
const PULL_REQUEST_ID = getPrNumber();
5049
const { OWNER, REPO } = getRepoInfo(github.context);
50+
var PULL_REQUEST_ID;
5151

5252
/**
5353
* Retrieve PR number from the event payload.
@@ -318,6 +318,7 @@ export const run = async () => {
318318
`;
319319
const ccc = new ColorContrastChecker();
320320
const commenter = getCommenter();
321+
PULL_REQUEST_ID = getPrNumber();
321322
debug(`Owner: ${OWNER}`);
322323
debug(`Repo: ${REPO}`);
323324
debug(`Commenter: ${commenter}`);

0 commit comments

Comments
 (0)