]> git.kaiwu.me - haproxy.git/commit
CI: Use `case()` function
authorTim Duesterhus <tim@bastelstu.be>
Mon, 13 Apr 2026 19:23:42 +0000 (21:23 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 14 Apr 2026 09:16:17 +0000 (11:16 +0200)
commit578d971d7d25e7d5481b009015f47806fac3fafb
tree48943dd4e30cc17573ec54111dcf2903e8536ee6
parent7640d7949f7b3210db25443e397e868e7c2c962d
CI: Use `case()` function

GitHub Actions introduced a new `case()` function in January that works just
like HAProxy’s `iif()` converter (just with an arbitrary number of
expressions). It is more robust than chaining strings with `&&` and `||`,
because it includes proper type-checking.

see https://github.blog/changelog/2026-01-29-github-actions-smarter-editing-clearer-debugging-and-a-new-case-function/#write-more-expressive-expressions-with-a-case-function
.github/workflows/vtest.yml