allow saving cache to be optional (#131)
This commit is contained in:
parent
00e306f4a9
commit
be4ac32ff6
4 changed files with 35 additions and 0 deletions
5
post.js
5
post.js
|
|
@ -13,6 +13,11 @@ async function run() {
|
|||
}
|
||||
|
||||
async function saveCaches() {
|
||||
if (!config.cacheSave) {
|
||||
core.info('Cache saving is disabled (cache-save: false)')
|
||||
return
|
||||
}
|
||||
|
||||
await saveCache(config.bazeliskCache)
|
||||
await saveCache(config.diskCache)
|
||||
await saveCache(config.repositoryCache)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue