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!
I just hit this too.
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 https://github.com/actions/workflow-parser/commit/ca95f9c491c6adc6f126bbc5dbe39d77a5b6d2a4 or later than that.
@dahlia seems to work locally, happy to make a PR unless @nektos has it planned in an upcoming release?
doesn't apply after release of github actions v2
Most helpful comment
I just hit this too.