mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-20 10:26:38 +00:00
* Add fail-on-cache-miss option * Small improvements * Changes after rebase * Update description * Only fail if no cache entry is found * Code review * Update readme * Add additional test case * Bump version + changelog * Update package-lock.json * Update Readme
28 lines
929 B
TypeScript
28 lines
929 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
|
|
}
|
|
|
|
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";
|