Act: Unable to parse and validate if there is an action on a schedule in the workflow

Created on 2 May 2019  路  4Comments  路  Source: nektos/act

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!

Most helpful comment

I just hit this too.

All 4 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ovitente picture ovitente  路  6Comments

magiskboy picture magiskboy  路  3Comments

Sygmei picture Sygmei  路  3Comments

kenorb picture kenorb  路  5Comments

justincy picture justincy  路  3Comments