Skip to content

Commit a138181

Browse files
authored
Merge pull request #4 from useblacksmith/bump-version
dist: bump cache version
2 parents e8ebfa1 + 02c6483 commit a138181

File tree

4 files changed

+21
-11
lines changed

4 files changed

+21
-11
lines changed

dist/cache-save/index.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,12 @@ function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArch
143143
}
144144
else {
145145
// Supress all non-validation cache related errors because caching should be optional
146-
core.warning(`Failed to restore: ${error.message}`);
146+
if (error.message.includes(`Cache service responded with 404`)) {
147+
core.info(`Did not get a cache hit; proceeding as an uncached run`);
148+
}
149+
else {
150+
core.warning(`Failed to restore: ${error.message}`);
151+
}
147152
}
148153
}
149154
finally {
@@ -173,10 +178,10 @@ function unlinkWithTimeout(path, timeoutMs) {
173178
}
174179
catch (error) {
175180
if (error.message === 'Unlink operation timed out') {
176-
core.warning('Unlink operation exceeded the timeout of ${timeoutMs}ms');
181+
core.warning(`Unlink operation exceeded the timeout of ${timeoutMs}ms`);
177182
}
178183
else {
179-
core.warning('Unlink operation failed:', error);
184+
core.debug(`Failed to delete archive: ${error}`);
180185
}
181186
throw error;
182187
}

dist/setup/index.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,12 @@ function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArch
143143
}
144144
else {
145145
// Supress all non-validation cache related errors because caching should be optional
146-
core.warning(`Failed to restore: ${error.message}`);
146+
if (error.message.includes(`Cache service responded with 404`)) {
147+
core.info(`Did not get a cache hit; proceeding as an uncached run`);
148+
}
149+
else {
150+
core.warning(`Failed to restore: ${error.message}`);
151+
}
147152
}
148153
}
149154
finally {
@@ -173,10 +178,10 @@ function unlinkWithTimeout(path, timeoutMs) {
173178
}
174179
catch (error) {
175180
if (error.message === 'Unlink operation timed out') {
176-
core.warning('Unlink operation exceeded the timeout of ${timeoutMs}ms');
181+
core.warning(`Unlink operation exceeded the timeout of ${timeoutMs}ms`);
177182
}
178183
else {
179-
core.warning('Unlink operation failed:', error);
184+
core.debug(`Failed to delete archive: ${error}`);
180185
}
181186
throw error;
182187
}

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"author": "GitHub",
2626
"license": "MIT",
2727
"dependencies": {
28-
"@actions/cache": "npm:@useblacksmith/cache@3.2.47",
28+
"@actions/cache": "npm:@useblacksmith/cache@3.2.48",
2929
"@actions/core": "^1.10.0",
3030
"@actions/exec": "^1.1.0",
3131
"@actions/github": "^5.1.1",

0 commit comments

Comments
 (0)