feat: automatic module directories (#1315)

This commit is contained in:
Ludovic Fernandez 2025-11-21 16:03:27 +01:00 committed by GitHub
parent f3ae99f5f5
commit e7fa5ac41e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 541 additions and 275 deletions

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()) {