mirror of
https://github.com/actions/cache.git
synced 2025-06-30 21:14:14 +00:00
add support for read-only cache
This commit is contained in:
parent
6babf202a4
commit
a88d0603fe
8 changed files with 79 additions and 3 deletions
|
@ -44,6 +44,11 @@ async function run(): Promise<void> {
|
|||
required: true
|
||||
});
|
||||
|
||||
if (utils.getInputAsBoolean(Inputs.ReadOnly)) {
|
||||
core.info(`Cache is read-only, skipping save.`);
|
||||
return;
|
||||
}
|
||||
|
||||
const cacheId = await cache.saveCache(cachePaths, primaryKey, {
|
||||
uploadChunkSize: utils.getInputAsInt(Inputs.UploadChunkSize)
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue