mirror of
https://github.com/actions/setup-go.git
synced 2026-06-28 18:55:08 +00:00
Merge 4a6270ada6 into 924ae3a1cd
This commit is contained in:
commit
bb89b43049
3 changed files with 16 additions and 0 deletions
5
dist/cache-save/index.js
vendored
5
dist/cache-save/index.js
vendored
|
|
@ -46594,6 +46594,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