Skip to content

Commit 451e84b

Browse files
build(deps): bump @actions/cache from 2.0.4 to 2.0.5 (#484)
Co-authored-by: Kamil Samigullin <[email protected]>
1 parent 1f57033 commit 451e84b

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

dist/post_run/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ function saveCache(paths, key, options) {
142142
const cachePaths = yield utils.resolvePaths(paths);
143143
core.debug('Cache Paths:');
144144
core.debug(`${JSON.stringify(cachePaths)}`);
145+
if (cachePaths.length === 0) {
146+
throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);
147+
}
145148
const archiveFolder = yield utils.createTempDirectory();
146149
const archivePath = path.join(archiveFolder, utils.getCacheFileName(compressionMethod));
147150
core.debug(`Archive Path: ${archivePath}`);

dist/run/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ function saveCache(paths, key, options) {
142142
const cachePaths = yield utils.resolvePaths(paths);
143143
core.debug('Cache Paths:');
144144
core.debug(`${JSON.stringify(cachePaths)}`);
145+
if (cachePaths.length === 0) {
146+
throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);
147+
}
145148
const archiveFolder = yield utils.createTempDirectory();
146149
const archivePath = path.join(archiveFolder, utils.getCacheFileName(compressionMethod));
147150
core.debug(`Archive Path: ${archivePath}`);

package-lock.json

Lines changed: 7 additions & 7 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
@@ -24,7 +24,7 @@
2424
"author": "golangci",
2525
"license": "MIT",
2626
"dependencies": {
27-
"@actions/cache": "^2.0.4",
27+
"@actions/cache": "^2.0.5",
2828
"@actions/core": "^1.8.0",
2929
"@actions/exec": "^1.1.1",
3030
"@actions/github": "^5.0.3",

0 commit comments

Comments
 (0)