-
-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when
evaluation string filter
#312
Comments
drone did something similar with its new pipeline config format: for expressions I would say we should not do that, instead add support for Starlark as it's already in used:
that way we have two options: a nice readable simple strait forward condig - or a powerful scripting lang to generate config dynamicaly |
but underplaying lib is: https://github.com/bazelbuild/bazel-gazelle |
Damn. I like the starlark approach, but on the other hand we wont drop the yml support and IMO there are already quite some special when options like My suggestion for the long term would be:
Maybe may example ( |
the easiest way to add or: but if we add to mouch of that syntax thing ... I realy like to fokus adding starlark - and not add more specail build in options |
While my intent on linking all these is not to make |
closes #312 closes #224 closes #963 Have a look for https://github.com/antonmedv/expr/blob/master/docs/Language-Definition.md
Clear and concise description of the problem
Currently Woodpecker already has quite some options for
when
to filter steps, but there are already some more requested adding all kind of exceptions would require quite some maintenance in the future.Suggested solution
Woodpecker could introduce artithmetic/string expressions to evaluate if a step should be executed replacing the current yml options. This could be done by some library like govaluate. By adding all kind of meta-data available for a step as variables and adding a few special functions a user could simply write own expressions like this example:
A similar feature is available for Github Actions
The text was updated successfully, but these errors were encountered: