@@ -61,7 +61,7 @@ releases="$(
61
61
# add a key for the appropriate "X.Y" or "X.Y-rc" value
62
62
| .folder = (.version | ([ split("[.-]"; "") | if .[0] == "7" then .[0] else .[0,1] end ] | join(".")) + if index("-") then "-rc" else "" end)
63
63
# filter to *just* versions that the upstream file claims are actually supported ("supported_branches")
64
- | select((.folder | rtrimstr("-rc")) as $ver | $versions | index($ver ) | not|not)
64
+ | select((.folder | rtrimstr("-rc")) | IN($versions[] ) | not|not)
65
65
) as $rel ({}; .[$rel.version] = $rel)
66
66
| to_entries
67
67
# put all releases in sorted order
@@ -116,14 +116,14 @@ for version in "${versions[@]}"; do
116
116
[
117
117
# https://www.drupal.org/project/drupal/releases/10.2.0-rc1#php-deps
118
118
# Drupal now supports PHP 8.3 and recommends at least PHP 8.2.
119
- if [ "7", "10.0" ] | index(env.version ) then empty else
119
+ if env.version | IN( "7", "10.0") then empty else
120
120
"8.3"
121
121
end,
122
122
# https://www.drupal.org/node/3413288 ("Drupal 11 will require PHP 8.3")
123
- if [ "7", "10.0", "10.2", "10.3" ] | index(env.version ) then
123
+ if env.version | IN( "7", "10.0", "10.2", "10.3") then
124
124
"8.2"
125
125
else empty end,
126
- if [ "7", "10.0" ] | index(env.version ) then
126
+ if env.version | IN( "7", "10.0") then
127
127
"8.1"
128
128
else empty end,
129
129
# https://www.drupal.org/docs/system-requirements/php-requirements
0 commit comments