feat: automatic module directories (#1315)

This commit is contained in:
Ludovic Fernandez authored and GitHub committed 2025-11-21 16:03:27 +01:00
1 parent f3ae99f5f5
commit e7fa5ac41e
18 files changed
+541 -275

No files matched your search

+13 -3
View File
@@ -74,7 +74,10 @@ async function buildCacheKeys(): Promise<string[]> {
}
export async function restoreCache(): Promise<void> {
if (core.getBooleanInput(`skip-cache`, { required: true })) return
if (core.getBooleanInput(`skip-cache`, { required: true })) {
core.info(`Skipping cache restoration`)
return
}
if (!utils.isValidEvent()) {
utils.logWarning(
@@ -116,8 +119,15 @@ export async function restoreCache(): Promise<void> {
}
export async function saveCache(): Promise<void> {
if (core.getBooleanInput(`skip-cache`, { required: true })) return
if (core.getBooleanInput(`skip-save-cache`, { required: true })) return
if (core.getBooleanInput(`skip-cache`, { required: true })) {
core.info(`Skipping cache saving`)
return
}
if (core.getBooleanInput(`skip-save-cache`, { required: true })) {
core.info(`Skipping cache saving`)
return
}
// Validate inputs, this can cause task failure
if (!utils.isValidEvent()) {