mirror of
https://github.com/gradle/actions.git
synced 2026-06-14 07:30:41 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a9cee88de3 |
@@ -37,6 +37,8 @@ export declare interface CacheOptions {
|
||||
strictMatch: boolean;
|
||||
cleanup: 'always' | 'on-success' | 'never';
|
||||
encryptionKey?: string;
|
||||
develocityAccessToken?: string;
|
||||
develocityServerUrl?: string;
|
||||
includes: string[];
|
||||
excludes: string[];
|
||||
}
|
||||
@@ -45,12 +47,22 @@ export declare interface CacheOptions {
|
||||
export declare interface CacheReport {
|
||||
status: CacheStatus;
|
||||
cleanup?: CacheCleanupStatus;
|
||||
projectCache?: ProjectCacheStatus;
|
||||
entries: CacheEntryReport[];
|
||||
}
|
||||
|
||||
/** @public */
|
||||
export declare type CacheStatus = 'enabled' | 'read-only' | 'write-only' | 'disabled' | 'disabled-existing-home' | 'not-available';
|
||||
|
||||
/**
|
||||
* Status of project-entry caching (build-logic artifacts + configuration-cache data) for a run.
|
||||
* The first three are set on restore (always ungated); the rest are set on save and reflect the
|
||||
* two-tier gate (opt-in + Develocity trial, then encryption key + Gradle version). Still beta.
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
declare type ProjectCacheStatus = 'not-enabled' | 'trial-expired' | 'trial-not-licensed' | 'no-encryption-key' | 'enabled';
|
||||
|
||||
/** @public */
|
||||
export declare function restore(gradleUserHome: string, cacheOptions: CacheOptions): Promise<void>;
|
||||
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "gradle-actions-caching",
|
||||
"version": "0.7.0",
|
||||
"version": "0.8.1-cc",
|
||||
"type": "module",
|
||||
"main": "./index.js",
|
||||
"types": "./index.d.ts",
|
||||
|
||||
Reference in New Issue
Block a user