mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2026-09-04 14:39:27 +00:00
build(deps): bump @actions/cache from 2.0.4 to 2.0.5 (#484)
Co-authored-by: Kamil Samigullin <kamil@samigullin.info>
This commit is contained in:
co-authored by
Kamil Samigullin
parent
1f5703370e
commit
451e84b610
Vendored
+3
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user