mirror of
https://github.com/actions/cache.git
synced 2024-12-01 14:22:24 +08:00
940f3d7cf1
* Add new actions/cache version (with dryRun support) * Add dry-run option * Changes after rebase * Update readme * Rename option to lookup-only * Update test name * Update package.json + changelog * Update README * Update custom package version * Update custom package version * Update @actions/cache to 3.2.0 * Code review * Update log statement * Move test case --------- Co-authored-by: Sankalp Kotewar <98868223+kotewar@users.noreply.github.com>
29 lines
996 B
TypeScript
29 lines
996 B
TypeScript
export enum Inputs {
|
|
Key = "key", // Input for cache, restore, save action
|
|
Path = "path", // Input for cache, restore, save action
|
|
RestoreKeys = "restore-keys", // Input for cache, restore action
|
|
UploadChunkSize = "upload-chunk-size", // Input for cache, save action
|
|
EnableCrossOsArchive = "enableCrossOsArchive", // Input for cache, restore, save action
|
|
FailOnCacheMiss = "fail-on-cache-miss", // Input for cache, restore action
|
|
LookupOnly = "lookup-only" // Input for cache, restore action
|
|
}
|
|
|
|
export enum Outputs {
|
|
CacheHit = "cache-hit", // Output from cache, restore action
|
|
CachePrimaryKey = "cache-primary-key", // Output from restore action
|
|
CacheMatchedKey = "cache-matched-key" // Output from restore action
|
|
}
|
|
|
|
export enum State {
|
|
CachePrimaryKey = "CACHE_KEY",
|
|
CacheMatchedKey = "CACHE_RESULT"
|
|
}
|
|
|
|
export enum Events {
|
|
Key = "GITHUB_EVENT_NAME",
|
|
Push = "push",
|
|
PullRequest = "pull_request"
|
|
}
|
|
|
|
export const RefKey = "GITHUB_REF";
|