mirror of
https://github.com/actions/cache.git
synced 2025-06-18 23:02:57 -06:00
new tollkit and isghes
This commit is contained in:
parent
2d8d0d1c9b
commit
aad9d15d47
6 changed files with 64 additions and 536 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue