1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2024-11-28 15:09:15 +01:00
cache/src/constants.ts

30 lines
599 B
TypeScript
Raw Normal View History

2019-11-12 23:01:15 +01:00
export enum Inputs {
Key = "key",
Path = "path",
2020-10-02 16:59:55 +02:00
RestoreKeys = "restore-keys",
2022-11-25 10:16:56 +01:00
UploadChunkSize = "upload-chunk-size",
2022-11-30 09:26:50 +01:00
FailOnCacheMiss = "fail-on-cache-miss",
2022-11-25 10:16:56 +01:00
SaveOnAnyFailure = "save-on-any-failure"
2019-10-30 19:48:49 +01:00
}
2019-11-12 23:01:15 +01:00
export enum Outputs {
CacheHit = "cache-hit"
2019-10-30 19:48:49 +01:00
}
2019-11-12 23:01:15 +01:00
export enum State {
CachePrimaryKey = "CACHE_KEY",
CacheMatchedKey = "CACHE_RESULT"
2019-10-30 19:48:49 +01:00
}
export enum Events {
Key = "GITHUB_EVENT_NAME",
Push = "push",
PullRequest = "pull_request"
}
2022-11-25 10:16:56 +01:00
export enum Variables {
SaveCacheOnAnyFailure = "SAVE_CACHE_ON_ANY_FAILURE"
}
2020-04-17 21:46:46 +02:00
export const RefKey = "GITHUB_REF";