2019-11-12 23:01:15 +01:00
|
|
|
export enum Inputs {
|
|
|
|
Key = "key",
|
|
|
|
Path = "path",
|
|
|
|
RestoreKeys = "restore-keys"
|
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 {
|
|
|
|
CacheKey = "CACHE_KEY",
|
|
|
|
CacheResult = "CACHE_RESULT"
|
2019-10-30 19:48:49 +01:00
|
|
|
}
|
2019-11-13 16:54:39 +01:00
|
|
|
|
|
|
|
export enum Events {
|
|
|
|
Key = "GITHUB_EVENT_NAME",
|
|
|
|
Push = "push",
|
|
|
|
PullRequest = "pull_request"
|
|
|
|
}
|
2020-03-20 21:02:11 +01:00
|
|
|
|
2020-04-22 22:36:34 +02:00
|
|
|
export enum CacheFilename {
|
|
|
|
Gzip = "cache.tgz",
|
|
|
|
Zstd = "cache.tzst"
|
|
|
|
}
|
|
|
|
|
|
|
|
export enum CompressionMethod {
|
|
|
|
Gzip = "gzip",
|
|
|
|
Zstd = "zstd"
|
|
|
|
}
|
2020-04-23 00:23:41 +02:00
|
|
|
|
2020-04-29 03:31:41 +02:00
|
|
|
// Socket timeout in milliseconds during download. If no traffic is received
|
|
|
|
// over the socket during this period, the socket is destroyed and the download
|
|
|
|
// is aborted.
|
2020-04-23 00:23:41 +02:00
|
|
|
export const SocketTimeout = 5000;
|