Interview Prep/GitHub Actions/Contexts, Expressions, Env & Outputs

What are the expression operators and how do comparisons coerce types?

IntermediateConceptContexts, Expressions, Env & Outputs
Answer

Operators: ( ), [ ], ., !, <, <=, >, >=, ==, !=, &&, ||. String comparison is case-insensitive ('Main' == 'main' is true). Mismatched types are coerced to numbers: null to 0, booleans to 1 or 0, strings parsed as numbers (empty string is 0, non-numeric is NaN, and NaN never equals anything). Objects and arrays are equal only if they are the same instance. So 'true' == true is false, and '' == 0 is true.

All GitHub Actions questions Roadmap: GitHub Actions

More on Contexts, Expressions, Env & Outputs