mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-07-30 18:03:17 +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
82092
dist/restore-only/index.js
vendored
82092
dist/restore-only/index.js
vendored
File diff suppressed because one or more lines are too long
82092
dist/restore/index.js
vendored
82092
dist/restore/index.js
vendored
File diff suppressed because one or more lines are too long
82092
dist/save-only/index.js
vendored
82092
dist/save-only/index.js
vendored
File diff suppressed because one or more lines are too long
82092
dist/save/index.js
vendored
82092
dist/save/index.js
vendored
File diff suppressed because one or more lines are too long
902
package-lock.json
generated
902
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -23,7 +23,7 @@
|
|||
"author": "GitHub",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/cache": "^3.2.3",
|
||||
"@ambi-robotics/cache": "^1.3.0",
|
||||
"@actions/core": "^1.10.0",
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/io": "^1.1.2"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as cache from "@actions/cache";
|
||||
import * as cache from "@ambi-robotics/cache";
|
||||
import * as core from "@actions/core";
|
||||
|
||||
import { Events, Inputs, Outputs, State } from "./constants";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as cache from "@actions/cache";
|
||||
import * as cache from "@ambi-robotics/cache";
|
||||
import * as core from "@actions/core";
|
||||
|
||||
import { Events, Inputs, State } from "./constants";
|
||||
|
|
|
@ -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