We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8501da3 commit ad44d25Copy full SHA for ad44d25
1 file changed
src/index.ts
@@ -93,24 +93,7 @@ async function installGitHubReleaseBinary(
93
{ accept: "application/octet-stream" }
94
);
95
96
- // Tolerate cache errors.
97
- // Possibly related to https://github.com/actions/toolkit/issues/658
98
- try {
99
- await cache.saveCache(cachePaths, cacheKey);
100
- } catch (error) {
101
- // NOTE: this is an unlawful cast
102
- const typedError = error as Error;
103
- switch (typedError.name) {
104
- case cache.ValidationError.name:
105
- throw error;
106
- case cache.ReserveCacheError.name:
107
- core.info(typedError.message);
108
- break;
109
- default:
110
- core.warning(typedError.message);
111
112
- }
113
+ await cache.saveCache(cachePaths, cacheKey);
114
}
115
116
// Permissions are an attribute of the filesystem, not the file.
0 commit comments