Skip to content

chore: use GitHub case syntax instead of ternary "if"#10139

Open
nmattia wants to merge 1 commit intomasterfrom
nm-ternary-case
Open

chore: use GitHub case syntax instead of ternary "if"#10139
nmattia wants to merge 1 commit intomasterfrom
nm-ternary-case

Conversation

@nmattia
Copy link
Copy Markdown
Contributor

@nmattia nmattia commented May 8, 2026

Replace ternary ifs (condition && trueValue || falseValue) GitHub Actions workflow files with the new first-class case() expression (actions/runner#409).

The case() expression is now the correct tool for the job and avoids some the "conditional if"
footguns.

Replace ternary ifs (`condition && trueValue || falseValue) GitHub Actions
workflow files with the new first-class `case()` expression (actions/runner#409).

The `case()` expression is now the correct tool for the job and avoids
some the of conditional if
[footguns](actions/runner#409 (comment)).
v#
@github-actions github-actions Bot added the chore label May 8, 2026
@nmattia nmattia marked this pull request as ready for review May 8, 2026 10:54
@nmattia nmattia requested a review from a team as a code owner May 8, 2026 10:54
@github-actions github-actions Bot added the @idx label May 8, 2026
Copy link
Copy Markdown
Collaborator

@basvandijk basvandijk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants