@ -85,6 +85,10 @@ export function resolvePath(filePath: string): string {
returnpath.resolve(filePath);
returnpath.resolve(filePath);
}
}
exportfunctiongetSupportedEvents():string[]{
return[Events.Push,Events.PullRequest];
}
// Currently the cache token is only authorized for push and pull_request events
// Currently the cache token is only authorized for push and pull_request events
// All other events will fail when reading and saving the cache
// All other events will fail when reading and saving the cache
// See GitHub Context https://help.github.com/actions/automating-your-workflow-with-github-actions/contexts-and-expression-syntax-for-github-actions#github-context
// See GitHub Context https://help.github.com/actions/automating-your-workflow-with-github-actions/contexts-and-expression-syntax-for-github-actions#github-context
@ -92,7 +96,3 @@ export function isValidEvent(): boolean {