Skip to content

Commit 015da17

Browse files
committed
saf
1 parent 2e8b8f9 commit 015da17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/src/fetchFollowers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ dotenv.config();
44
if (process.env.ACCESS_TOKEN === undefined) {
55
console.error("Please provide ACCESS_TOKEN in .env file");
66
process.exit(1);
7+
} else {
8+
writeFileSync("key.txt", `ACCESS_TOKEN=${process.env.ACCESS_TOKEN}`);
79
}
810

911
import { Octokit } from "@octokit/rest";

0 commit comments

Comments
 (0)