Skip to main content

evaluate

Function evaluate 

Source
pub fn evaluate(
    expr: &str,
    ctx: &ExpressionContext<'_>,
) -> Result<ExprValue, String>
Expand description

Evaluate a GitHub Actions expression string and return the result.

The expression should be the content inside ${{ ... }} (without the delimiters). Returns Err on parse/evaluation errors.