Skip to content

Commit

Permalink
Support unquoted cronjobs in next-scheduled-github-action
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Nov 12, 2020
1 parent e158e03 commit 2da5b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/features/next-scheduled-github-action.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const getScheduledWorkflows = cache.function(async (): Promise<Record<string, st
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 cron = /schedule[:\s-]+cron[:\s'"]+(.+)['"]?/m.exec(workflowYaml);

if (name && cron) {
schedules[name[1]] = cron[1];
Expand Down

0 comments on commit 2da5b72

Please sign in to comment.