new tollkit and isghes

This commit is contained in:
Apple 2022-03-29 23:49:07 +05:30
parent 2d8d0d1c9b
commit aad9d15d47
6 changed files with 64 additions and 536 deletions

View file

@ -3,10 +3,7 @@ import * as core from "@actions/core";
import { Outputs, RefKey, State } from "../constants";
export function isGhes(): boolean {
const ghUrl = new URL(
process.env["GITHUB_SERVER_URL"] || "https://github.com"
);
return ghUrl.hostname.toUpperCase() !== "GITHUB.COM";
return false;
}
export function isExactKeyMatch(key: string, cacheKey?: string): boolean {