[GH-ISSUE #61] Unable to parse and validate if there is an action on a schedule in the workflow #34

Closed
opened 2026-03-01 21:39:17 +03:00 by kerem · 4 comments
Owner

Originally created by @HoughIO on GitHub (May 2, 2019).
Original GitHub issue: https://github.com/nektos/act/issues/61

I have an action that runs on a schedule.

act fails to run if it's present in the main.workflow file.

Example output:

Error: unable to parse and validate
  Line 21: Workflow `WORKFLOW' has unknown `on' value `schedule(0 9 * * *)'
  Line 133: Workflow `WORKFLOW2' has unknown `on' value `schedule(0 16 * * 2)'

Following this documentation for chrons:
https://developer.github.com/actions/managing-workflows/creating-and-cancelling-a-workflow/#scheduling-a-workflow

I can remove these for testing and add them back, but thought I would raise an issue.

Thanks for making this tool!

Originally created by @HoughIO on GitHub (May 2, 2019). Original GitHub issue: https://github.com/nektos/act/issues/61 I have an action that runs on a schedule. `act` fails to run if it's present in the main.workflow file. Example output: ``` Error: unable to parse and validate Line 21: Workflow `WORKFLOW' has unknown `on' value `schedule(0 9 * * *)' Line 133: Workflow `WORKFLOW2' has unknown `on' value `schedule(0 16 * * 2)' ``` Following this documentation for chrons: https://developer.github.com/actions/managing-workflows/creating-and-cancelling-a-workflow/#scheduling-a-workflow I can remove these for testing and add them back, but thought I would raise an issue. Thanks for making this tool!
kerem closed this issue 2026-03-01 21:39:17 +03:00
Author
Owner

@olizilla commented on GitHub (May 10, 2019):

I just hit this too.

<!-- gh-comment-id:491266263 --> @olizilla commented on GitHub (May 10, 2019): I just hit this too.
Author
Owner

@dahlia commented on GitHub (May 13, 2019):

Currently act vendors v1.0.0 the GitHub Actions' official workflow-parser, which didn't support schedule expressions yet. It would be fixed if we change act to vendor github.com/actions/workflow-parser@ca95f9c491 or later than that.

<!-- gh-comment-id:491695552 --> @dahlia commented on GitHub (May 13, 2019): Currently `act` vendors [v1.0.0] the [GitHub Actions' official workflow-parser][1], which didn't support [schedule expressions][2] yet. It would be fixed if we change `act` to vendor https://github.com/actions/workflow-parser/commit/ca95f9c491c6adc6f126bbc5dbe39d77a5b6d2a4 or later than that. [v1.0.0]: https://github.com/actions/workflow-parser/tree/v1.0.0 [1]: https://github.com/actions/workflow-parser [2]: https://github.com/actions/workflow-parser/pull/43
Author
Owner

@creatorrr commented on GitHub (Jul 9, 2019):

@dahlia seems to work locally, happy to make a PR unless @nektos has it planned in an upcoming release?

<!-- gh-comment-id:509707690 --> @creatorrr commented on GitHub (Jul 9, 2019): @dahlia seems to work locally, happy to make a PR unless @nektos has it planned in an upcoming release?
Author
Owner

@cplee commented on GitHub (Feb 12, 2020):

doesn't apply after release of github actions v2

<!-- gh-comment-id:585092125 --> @cplee commented on GitHub (Feb 12, 2020): doesn't apply after release of github actions v2
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#34
No description provided.