Deploy version 1.1.1
This commit is contained in:
23
dist/index.js
vendored
23
dist/index.js
vendored
@@ -19741,10 +19741,10 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
|
||||
(0, command_1.issueCommand)("error", (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message);
|
||||
}
|
||||
exports2.error = error;
|
||||
function warning3(message, properties = {}) {
|
||||
function warning4(message, properties = {}) {
|
||||
(0, command_1.issueCommand)("warning", (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message);
|
||||
}
|
||||
exports2.warning = warning3;
|
||||
exports2.warning = warning4;
|
||||
function notice(message, properties = {}) {
|
||||
(0, command_1.issueCommand)("notice", (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message);
|
||||
}
|
||||
@@ -26429,7 +26429,13 @@ async function run() {
|
||||
if (paths.length === 0) {
|
||||
throw new Error("State 'paths' not found or empty during Post-Job.");
|
||||
}
|
||||
await saveCache(key, paths, compression_level);
|
||||
try {
|
||||
await saveCache(key, paths, compression_level);
|
||||
} catch (error) {
|
||||
core4.warning(
|
||||
`\u26A0\uFE0F Failed to save cache: ${error instanceof Error ? error.message : String(error)}`
|
||||
);
|
||||
}
|
||||
} else {
|
||||
core4.info("\u{1F680} Pre-job: Restoring cache...");
|
||||
getToken();
|
||||
@@ -26448,8 +26454,15 @@ async function run() {
|
||||
core4.saveState("key", key);
|
||||
core4.saveState("paths", JSON.stringify(paths));
|
||||
core4.saveState("compression-level", compression_level.toString());
|
||||
const restored = await restoreCache(key);
|
||||
core4.setOutput("cache-hit", restored ? "true" : "false");
|
||||
try {
|
||||
const restored = await restoreCache(key);
|
||||
core4.setOutput("cache-hit", restored ? "true" : "false");
|
||||
} catch (error) {
|
||||
core4.warning(
|
||||
`\u26A0\uFE0F Failed to restore cache: ${error instanceof Error ? error.message : String(error)}`
|
||||
);
|
||||
core4.setOutput("cache-hit", "false");
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
if (error instanceof Error) {
|
||||
|
Reference in New Issue
Block a user