-
Notifications
You must be signed in to change notification settings - Fork 543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error handling for cache #238
Error handling for cache #238
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably go in the restoreCache()
function from the @actions/cache
toolkit package. That way everything that uses caching will handle 503s correctly.
Upstream fix: actions/toolkit#1122 |
@brcrista, please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We just have to bump @actions/cache
to v3: actions/toolkit#1122
Sorry, missed the new changes
Added logic to handle cache errors similarly
actions/cache
:https://github.com/actions/cache/blob/main/src/restore.ts#L33
Execution of the action is not interrupted if the cache restore operation returns an error.