mirror of
https://github.com/actions/cache.git
synced 2025-08-19 15:45:05 +00:00
When `read-only` is `true`, the cache is only restored and not saved. This allows for sharing the cache with multiple steps even if these steps may change them, and speeds them up regardless.
25 lines
454 B
TypeScript
25 lines
454 B
TypeScript
export enum Inputs {
|
|
Key = "key",
|
|
Path = "path",
|
|
RestoreKeys = "restore-keys",
|
|
UploadChunkSize = "upload-chunk-size",
|
|
ReadOnly = "read-only"
|
|
}
|
|
|
|
export enum Outputs {
|
|
CacheHit = "cache-hit"
|
|
}
|
|
|
|
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";
|