flowpactworkflow contracts
Rules

FP502 · expression-parse-error

A `${{ }}` expression (or an `if:` condition) cannot be parsed.

CodeNameCategoryDefault severity
FP502expression-parse-errorEnv & expressions🔴 error

Why it matters

GitHub rejects the workflow when it is triggered, or fails the step that contains the expression.

How to fix

Fix the syntax: strings use single quotes, == for equality, and every $\{\{ needs a closing \}\}.

Example

if: ${{ inputs.mode = "release" }}

Configure

Change the severity (or turn the rule off) in .github/flowpact/flowpact.config.yml, by code or by name:

.github/flowpact/flowpact.config.yml
rules:
  FP502: off
  # or: expression-parse-error: error

Explain it in the terminal:

flowpact explain FP502

On this page