2019-11-13 06:01:15 +08:00
|
|
|
export enum Inputs {
|
2022-12-09 21:56:33 +08:00
|
|
|
Key = "key", // Input from cache, restore, save action
|
|
|
|
Path = "path", // Input from cache, restore, save action
|
|
|
|
RestoreKeys = "restore-keys", // Input from cache, restore action
|
|
|
|
UploadChunkSize = "upload-chunk-size", // Input from cache, save action
|
|
|
|
RestoredKey = "restored-key" // Input from save action
|
2019-10-31 02:48:49 +08:00
|
|
|
}
|
|
|
|
|
2019-11-13 06:01:15 +08:00
|
|
|
export enum Outputs {
|
2022-12-09 21:56:33 +08:00
|
|
|
CacheHit = "cache-hit", // Output from cache, restore action
|
|
|
|
InputtedKey = "inputted-key", // Output from restore action
|
|
|
|
MatchedKey = "matched-key" // Output from restore action
|
2019-10-31 02:48:49 +08:00
|
|
|
}
|
|
|
|
|
2019-11-13 06:01:15 +08:00
|
|
|
export enum State {
|
2020-05-20 01:46:58 +08:00
|
|
|
CachePrimaryKey = "CACHE_KEY",
|
|
|
|
CacheMatchedKey = "CACHE_RESULT"
|
2019-10-31 02:48:49 +08:00
|
|
|
}
|
2019-11-13 23:54:39 +08:00
|
|
|
|
|
|
|
export enum Events {
|
|
|
|
Key = "GITHUB_EVENT_NAME",
|
|
|
|
Push = "push",
|
|
|
|
PullRequest = "pull_request"
|
|
|
|
}
|
2020-03-21 04:02:11 +08:00
|
|
|
|
2020-04-18 03:46:46 +08:00
|
|
|
export const RefKey = "GITHUB_REF";
|