use input instead of env to receive github token

Co-authored-by: Platane <me@platane.me>
This commit is contained in:
Awayume
2023-10-09 16:04:10 +09:00
committed by Platane
parent 01fa6d7aac
commit c9644d3dfa
8 changed files with 19 additions and 14 deletions

View File

@@ -1,5 +1,6 @@
import * as fs from "fs";
import * as path from "path";
import * as core from "@actions/core";
import { generateContributionSnake } from "../generateContributionSnake";
import { parseOutputsOption } from "../outputsOptions";
import { config } from "dotenv";
@@ -33,7 +34,7 @@ it(
const outputs = parseOutputsOption(entries);
const results = await generateContributionSnake("platane", outputs, {
githubToken: process.env.GITHUB_TOKEN!,
githubToken: core.getInput("github_token"),
});
expect(results[0]).toBeDefined();