mirror of
https://github.com/actions/setup-go.git
synced 2026-07-01 12:01:46 +00:00
Compare commits
2 Commits
bcee56e4a1
...
b917fb5fcb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b917fb5fcb | ||
|
|
0f07568d6d |
5
dist/cache-save/index.js
vendored
5
dist/cache-save/index.js
vendored
@ -58442,7 +58442,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.run = void 0;
|
||||
exports.cachePackages = exports.run = void 0;
|
||||
const core = __importStar(__nccwpck_require__(2186));
|
||||
const cache = __importStar(__nccwpck_require__(7799));
|
||||
const fs_1 = __importDefault(__nccwpck_require__(7147));
|
||||
@ -58462,7 +58462,7 @@ function run() {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
yield cachePackages();
|
||||
yield exports.cachePackages();
|
||||
}
|
||||
catch (error) {
|
||||
let message = 'Unknown error!';
|
||||
@ -58509,6 +58509,7 @@ const cachePackages = () => __awaiter(void 0, void 0, void 0, function* () {
|
||||
}
|
||||
core.info(`Cache saved with the key: ${primaryKey}`);
|
||||
});
|
||||
exports.cachePackages = cachePackages;
|
||||
function logWarning(message) {
|
||||
const warningPrefix = '[warning]';
|
||||
core.info(`${warningPrefix}${message}`);
|
||||
|
||||
@ -31,7 +31,7 @@ export async function run() {
|
||||
}
|
||||
}
|
||||
|
||||
const cachePackages = async () => {
|
||||
export const cachePackages = async () => {
|
||||
const cacheInput = core.getBooleanInput('cache');
|
||||
if (!cacheInput) {
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user