summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/features/next-scheduled-github-action.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/next-scheduled-github-action.tsx b/source/features/next-scheduled-github-action.tsx
index c7f50bce..eda70649 100644
--- a/source/features/next-scheduled-github-action.tsx
+++ b/source/features/next-scheduled-github-action.tsx
@@ -32,8 +32,8 @@ const getScheduledWorkflows = cache.function(async (): Promise<Record<string, st
const schedules: Record<string, string> = {};
for (const workflow of workflows) {
const workflowYaml = workflow.object.text;
- const name = /^name[:\s'"]+(.+)['"]?/m.exec(workflowYaml);
- const cron = /schedule[:\s-]+cron[:\s'"]+(.+)['"]?/m.exec(workflowYaml);
+ const name = /^name[:\s'"]+([^'"\n]+)/m.exec(workflowYaml);
+ const cron = /schedule[:\s-]+cron[:\s'"]+([^'"\n]+)/m.exec(workflowYaml);
if (name && cron) {
schedules[name[1]] = cron[1];