cache/src/constants.ts

26 lines
544 B
TypeScript
Raw Normal View History

2019-11-15 15:29:58 +00:00
export enum Inputs {
Key = "key",
Path = "path",
RestoreKeys = "restore-keys"
2019-10-30 18:48:49 +00:00
}
2019-11-15 15:29:58 +00:00
export enum Outputs {
CacheHit = "cache-hit"
2019-10-30 18:48:49 +00:00
}
2019-11-15 15:29:58 +00:00
export enum State {
CacheKey = "CACHE_KEY",
CacheResult = "CACHE_RESULT"
}
export enum Events {
Key = "GITHUB_EVENT_NAME",
Push = "push",
PullRequest = "pull_request"
2019-10-30 18:48:49 +00:00
}
2020-04-29 01:31:41 +00: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.
export const SocketTimeout = 5000;