No-op on GHES

This commit is contained in:
Dave Hadka committed 2020-09-29 09:58:32 -05:00
1 parent eed9cfe64d
commit 4d604c6cce
5 files changed
+60

No files matched your search

+7
View File
@@ -2,6 +2,13 @@ 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";
}
export function isExactKeyMatch(key: string, cacheKey?: string): boolean {
return !!(
cacheKey &&