feat: initial version (#1)
Some checks failed
/ demo (push) Has been cancelled

Co-authored-by: Parker Brown <17183625+parkerbxyz@users.noreply.github.com>
Co-authored-by: Gregor Martynus <gr2m@users.noreply.github.com>
This commit is contained in:
Gregor Martynus
2023-06-08 17:04:10 -07:00
committed by GitHub
parent abcb015889
commit f45685208f
14 changed files with 24977 additions and 3 deletions

23
main.js Normal file
View File

@@ -0,0 +1,23 @@
// @ts-check
import core from "@actions/core";
import { createAppAuth } from "@octokit/auth-app";
import { request } from "@octokit/request";
import { main } from "./lib/main.js";
if (!process.env.GITHUB_REPOSITORY) {
throw new Error("GITHUB_REPOSITORY missing, must be set to '<owner>/<repo>'");
}
const appId = core.getInput("app_id");
const privateKey = core.getInput("private_key");
const repository = process.env.GITHUB_REPOSITORY;
main(appId, privateKey, repository, core, createAppAuth, request).catch(
(error) => {
console.error(error);
core.setFailed(error.message);
}
);