Improve cron schedule warning message (#227)

This commit is contained in:
eric sciple
2025-12-04 13:31:20 -06:00
committed by GitHub
parent dfb411f71e
commit 4dd678cf30
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -247,7 +247,7 @@ function validateCronExpression(diagnostics: Diagnostic[], token: StringToken):
// Check if the cron specifies an interval less than 5 minutes
if (hasCronIntervalLessThan5Minutes(cronValue)) {
diagnostics.push({
message: `${description}. Note: Actions schedules run at most every 5 minutes.`,
message: `Actions schedules run at most every 5 minutes. "${cronValue}" (${description.toLowerCase()}) will not run as frequently as specified.`,
range: mapRange(token.range),
severity: DiagnosticSeverity.Warning,
code: "on-schedule",