Skip to content

Commit

Permalink
build(deps): bump @actions/cache from 2.0.4 to 2.0.5 (#484)
Browse files Browse the repository at this point in the history
Co-authored-by: Kamil Samigullin <kamil@samigullin.info>
  • Loading branch information
dependabot[bot] and kamilsk committed Jun 1, 2022
1 parent 1f57033 commit 451e84b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
3 changes: 3 additions & 0 deletions dist/post_run/index.js
Expand Up @@ -142,6 +142,9 @@ function saveCache(paths, key, options) {
const cachePaths = yield utils.resolvePaths(paths);
core.debug('Cache Paths:');
core.debug(`${JSON.stringify(cachePaths)}`);
if (cachePaths.length === 0) {
throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);
}
const archiveFolder = yield utils.createTempDirectory();
const archivePath = path.join(archiveFolder, utils.getCacheFileName(compressionMethod));
core.debug(`Archive Path: ${archivePath}`);
Expand Down
3 changes: 3 additions & 0 deletions dist/run/index.js
Expand Up @@ -142,6 +142,9 @@ function saveCache(paths, key, options) {
const cachePaths = yield utils.resolvePaths(paths);
core.debug('Cache Paths:');
core.debug(`${JSON.stringify(cachePaths)}`);
if (cachePaths.length === 0) {
throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);
}
const archiveFolder = yield utils.createTempDirectory();
const archivePath = path.join(archiveFolder, utils.getCacheFileName(compressionMethod));
core.debug(`Archive Path: ${archivePath}`);
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -24,7 +24,7 @@
"author": "golangci",
"license": "MIT",
"dependencies": {
"@actions/cache": "^2.0.4",
"@actions/cache": "^2.0.5",
"@actions/core": "^1.8.0",
"@actions/exec": "^1.1.1",
"@actions/github": "^5.0.3",
Expand Down

0 comments on commit 451e84b

Please sign in to comment.