From d3d55ffc0804bff47584e7d0fd138bbce624f769 Mon Sep 17 00:00:00 2001 From: Jacob Wallraff Date: Mon, 23 Jan 2023 16:27:32 -0800 Subject: [PATCH] Remove changes in parser --- .../src/templates/template-reader.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/actions-workflow-parser/src/templates/template-reader.ts b/actions-workflow-parser/src/templates/template-reader.ts index a34a2b5..7523266 100644 --- a/actions-workflow-parser/src/templates/template-reader.ts +++ b/actions-workflow-parser/src/templates/template-reader.ts @@ -225,22 +225,6 @@ class TemplateReader { if (nextPropertyDef.description) { nextKey.description = nextPropertyDef.description; } - else if (upperKey === "CRON") { - // Schedules are a special case, we have to calculate the description - if (isString(nextValue)) { - const cronDescription = getSentence((nextValue as StringToken).value) - if (cronDescription) { - nextValue.description = cronDescription + "\n\nActions schedules run at most every 5 minutes." + - " [Learn more](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#onschedule)"; - } - else { - nextValue.description = "Invalid cron expression" - } - } - else { - nextValue.description = "Cron expression must be a string" - } - } mapping.add(nextKey, nextValue); continue;