// Currently the cache token is only authorized for push and pull_request events
// 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
// over the socket during this period, the socket is destroyed and the download
// over the socket during this period, the socket is destroyed and the download
// is aborted.
// is aborted.
exports.SocketTimeout=5000;
exports.SocketTimeout=5000;
=======
exports.RefKey="GITHUB_REF";
exports.CacheFilename="cache.tgz";
>>>>>>>Allowalleventstoaccesscache
/***/}),
/***/}),
@ -4667,9 +4666,7 @@ function run() {
try{
try{
// Validate inputs, this can cause task failure
// Validate inputs, this can cause task failure
if(!utils.isValidEvent()){
if(!utils.isValidEvent()){
utils.logWarning(`Event Validation Error: The event type ${process.env[constants_1.Events.Key]} is not supported. Only ${utils
utils.logWarning(`Event Validation Error: The event type ${process.env[constants_1.Events.Key]} is not supported because it's not tied to a branch or tag ref.`);
// Currently the cache token is only authorized for push and pull_request events
// 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
utils.logWarning(`Event Validation Error: The event type ${process.env[constants_1.Events.Key]} is not supported. Only ${utils
utils.logWarning(`Event Validation Error: The event type ${process.env[constants_1.Events.Key]} is not supported because it's not tied to a branch or tag ref.`);
.getSupportedEvents()
.join(", ")}eventsaresupportedatthistime.`);
return;
return;
}
}
conststate=utils.getCacheState();
conststate=utils.getCacheState();
@ -4663,6 +4655,7 @@ var CompressionMethod;
// over the socket during this period, the socket is destroyed and the download
// over the socket during this period, the socket is destroyed and the download
// Cache token authorized for all events that are tied to a ref
return[Events.Push,Events.PullRequest];
}
// Currently the cache token is only authorized for push and pull_request events
// 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