✨ use process.env. instead of @action/core in test and local
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import * as core from "@actions/core";
|
||||
import { getGithubUserContribution } from "..";
|
||||
import { config } from "dotenv";
|
||||
config({ path: __dirname + "/../../../.env" });
|
||||
|
||||
describe("getGithubUserContribution", () => {
|
||||
const promise = getGithubUserContribution("platane", {
|
||||
githubToken: process.env.GITHUB_TOKEN ?? core.getInput("github_token"),
|
||||
githubToken: process.env.GITHUB_TOKEN!,
|
||||
});
|
||||
|
||||
it("should resolve", async () => {
|
||||
|
||||
Reference in New Issue
Block a user