You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cache/src/constants.ts

36 lines
695 B
TypeScript

export enum Inputs {
Key = "key",
Path = "path",
RestoreKeys = "restore-keys"
5 years ago
}
export enum Outputs {
CacheHit = "cache-hit"
5 years ago
}
export enum State {
CacheKey = "CACHE_KEY",
CacheResult = "CACHE_RESULT"
5 years ago
}
export enum Events {
Key = "GITHUB_EVENT_NAME",
Push = "push",
PullRequest = "pull_request"
}
export enum CacheFilename {
Gzip = "cache.tgz",
Zstd = "cache.tzst"
}
export enum CompressionMethod {
Gzip = "gzip",
Zstd = "zstd"
}
// 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;