mirror of
https://github.com/actions/setup-node.git
synced 2026-05-23 21:01:54 +00:00
Merge db56306c3a into 670825a89d
This commit is contained in:
commit
bbc9063767
3 changed files with 16 additions and 0 deletions
5
dist/cache-save/index.js
vendored
5
dist/cache-save/index.js
vendored
|
|
@ -46344,6 +46344,11 @@ process.on('uncaughtException', e => {
|
|||
// Added early exit to resolve issue with slow post action step:
|
||||
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 cacheLock = core.getState(constants_1.State.CachePackageManager);
|
||||
if (cacheLock) {
|
||||
await cachePackages(cacheLock);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue