Skip to content

Commit 40809dc

Browse files
committed
feat: update env check
1 parent a0abac8 commit 40809dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ const {
99
} = process.env;
1010

1111
try {
12-
if (!GH_TOKEN) {
12+
if (!githubToken) {
1313
throw new Error("GH_TOKEN is not provided.");
1414
}
15-
if (!GIST_ID) {
15+
if (!gistId) {
1616
throw new Error("GIST_ID is not provided.");
1717
}
18-
if (!USERNAME) {
19-
throw new Error("USERNAME is not provided.");
18+
if (!records) {
19+
throw new Error("RECORDS is not provided.");
2020
}
2121
} catch (e) {
2222
console.error(e);

0 commit comments

Comments
 (0)