mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-08-02 11:20:24 +00:00
feat: switch to @ambi-robotics/cache backend
This commit is contained in:
parent
0c45773b62
commit
4c96456d46
9 changed files with 155232 additions and 174058 deletions
|
@ -1,4 +1,4 @@
|
|||
import * as cache from "@actions/cache";
|
||||
import * as cache from "@ambi-robotics/cache";
|
||||
import * as core from "@actions/core";
|
||||
|
||||
import { RefKey } from "../constants";
|
||||
|
@ -64,17 +64,5 @@ export function isCacheFeatureAvailable(): boolean {
|
|||
if (cache.isFeatureAvailable()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (isGhes()) {
|
||||
logWarning(
|
||||
`Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not.
|
||||
Otherwise please upgrade to GHES version >= 3.5 and If you are also using Github Connect, please unretire the actions/cache namespace before upgrade (see https://docs.github.com/en/enterprise-server@3.5/admin/github-actions/managing-access-to-actions-from-githubcom/enabling-automatic-access-to-githubcom-actions-using-github-connect#automatic-retirement-of-namespaces-for-actions-accessed-on-githubcom)`
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
logWarning(
|
||||
"An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions."
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue