Which expression pattern provides a fallback value when an input might be empty?
Select an answer to reveal the explanation.
Short Explanation
You don't need a special function here. GitHub Actions uses || as the fallback operator: if inputs.env is truthy, you get it; if it's empty, you get production.
Full Explanation
GitHub Actions expressions use the || operator for logical OR, which also works as a null-coalescing pattern: ${{ inputs.env || 'production' }} returns inputs.env if it's truthy (non-empty, non-null), otherwise returns production. The empty string, null, 0, and false are all falsy in GitHub Actions expressions, so the fallback value appears when the input is missing or empty. The or(inputs.env, 'production') function call is wrong because GitHub Actions expressions don't provide an or() function for this pattern. The inputs.env ?: 'production' ternary-style expression is wrong because ?: isn't supported in GitHub Actions expressions. The default(inputs.env, 'production') function call is wrong because default() isn't a built-in GitHub Actions function. The JavaScript-style nullish coalescing operator isn't supported either, so the supported fallback pattern here is the || expression.