File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 9898 id : php-versions
9999 run : |
100100 if [ "${WP_VERSION}" != "latest" ] && [ "${WP_VERSION}" != "nightly" ]; then
101- echo "versions=$(jq -r '.["${WP_VERSION}"] | @json' .version-support-php.json)" >> "$GITHUB_OUTPUT" # @TODO finalise
101+ VERSIONS="$( jq \
102+ -r \
103+ --arg wp_version "${WP_VERSION}" \
104+ '.[$wp_version] | @json' \
105+ .version-support-php.json
106+ )"
107+ echo "versions=$VERSIONS" >> "$GITHUB_OUTPUT"
102108 else
103109 echo "versions=$(jq -r '.[ (keys[-1]) ] | @json' .version-support-php.json)" >> "$GITHUB_OUTPUT"
104110 fi
@@ -135,7 +141,13 @@ jobs:
135141 id : mysql-versions
136142 run : |
137143 if [ "${WP_VERSION}" != "latest" ] && [ "${WP_VERSION}" != "nightly" ]; then
138- echo "versions=$(jq -r '.["${WP_VERSION}"] | @json' .version-support-mysql.json)" >> "$GITHUB_OUTPUT" # @todo finalise
144+ VERSIONS="$( jq \
145+ -r \
146+ --arg wp_version "${WP_VERSION}" \
147+ '.[$wp_version] | @json' \
148+ .version-support-mysql.json
149+ )"
150+ echo "versions=$VERSIONS" >> "$GITHUB_OUTPUT"
139151 else
140152 echo "versions=$(jq -r '.[ (keys[-1]) ] | @json' .version-support-mysql.json)" >> "$GITHUB_OUTPUT"
141153 fi
You can’t perform that action at this time.
0 commit comments