Merge b5284171bb into 54baeea5b3
This commit is contained in:
commit
93c5201c99
3 changed files with 16 additions and 0 deletions
|
|
@ -9,6 +9,14 @@ import {State} from './cache-distributions/cache-distributor';
|
|||
// https://github.com/actions/cache/pull/1217
|
||||
export async function run(earlyExit?: boolean) {
|
||||
try {
|
||||
const cacheWriteEnabled = core.getInput('cache-write');
|
||||
if (cacheWriteEnabled === 'false') {
|
||||
core.info(
|
||||
'Cache write is disabled (read-only mode). Skipping cache save.'
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
const cache = core.getInput('cache');
|
||||
if (cache) {
|
||||
await saveCache(cache);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue