mirror of
https://github.com/actions/setup-python.git
synced 2026-07-18 14:39:58 +08:00
Merge b5284171bb into 54baeea5b3
This commit is contained in:
commit
93c5201c99
3 changed files with 16 additions and 0 deletions
5
dist/cache-save/index.js
vendored
5
dist/cache-save/index.js
vendored
|
|
@ -51705,6 +51705,11 @@ const cache_distributor_1 = __nccwpck_require__(92326);
|
|||
// https://github.com/actions/cache/pull/1217
|
||||
async function run(earlyExit) {
|
||||
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