Interview Prep/GitHub Actions/Expressions, Outputs, Matrix & Conditions

`if: github.event.inputs.deploy == true` never runs the step, even when the box is ticked.

BeginnerTroubleshootingExpressions, Outputs, Matrix & Conditions
Answer

Likely causes → github.event.inputs values are strings; 'true' == true is false after numeric coercion.

Diagnose → Dump toJSON(github.event.inputs) and toJSON(inputs).

Fix → if: inputs.deploy (typed) or if: github.event.inputs.deploy == 'true'.

Prevent → Use the inputs context everywhere.

All GitHub Actions questions Roadmap: GitHub Actions

More on Expressions, Outputs, Matrix & Conditions