mirror of
https://github.com/actions/setup-go.git
synced 2026-04-06 12:49:24 +00:00
Merge 4a6270ada6 into 4a3601121d
This commit is contained in:
commit
afe1e86fd4
3 changed files with 16 additions and 0 deletions
5
dist/cache-save/index.js
vendored
5
dist/cache-save/index.js
vendored
|
|
@ -71548,6 +71548,11 @@ process.on('uncaughtException', e => {
|
|||
function run(earlyExit) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
const cacheWriteEnabled = core.getInput('cache-write');
|
||||
if (cacheWriteEnabled === 'false') {
|
||||
core.info('Cache write is disabled (read-only mode). Skipping cache save.');
|
||||
return;
|
||||
}
|
||||
const cacheInput = core.getBooleanInput('cache');
|
||||
if (cacheInput) {
|
||||
yield cachePackages();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue