mirror of
https://code.forgejo.org/actions/cache
synced 2025-06-19 01:50:27 +02:00
Removing GHES condition to enabled cache for GHES
This commit is contained in:
parent
611465405c
commit
8bcf0245bb
8 changed files with 2 additions and 96 deletions
|
@ -2,13 +2,6 @@ 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 &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue