mirror of
https://github.com/icewind1991/nextcloud-version-matrix.git
synced 2026-06-03 09:34:12 +02:00
fix max-php logic
This commit is contained in:
parent
54b437b0a0
commit
111919cfc7
2 changed files with 6 additions and 4 deletions
5
dist/index.js
vendored
5
dist/index.js
vendored
|
|
@ -38817,6 +38817,7 @@ async function getSupportedVersions(branch) {
|
|||
let versionCheckCode = await res.readBody();
|
||||
let min = parseVersionId(versionCheckCode.match(/PHP_VERSION_ID < (\d+)/)[1]);
|
||||
let max = parseVersionId(versionCheckCode.match(/PHP_VERSION_ID >= (\d+)/)[1]);
|
||||
max = parseFloat((max - 0.1).toFixed(1));
|
||||
return {min: min, max: max};
|
||||
}
|
||||
|
||||
|
|
@ -38888,8 +38889,8 @@ function onlyUnique(value, index, array) {
|
|||
core.setOutput("branches", JSON.stringify(branches));
|
||||
core.setOutput("ocp-branches", JSON.stringify(branches.map(branch => `dev-${branch}`)));
|
||||
core.setOutput("php-versions", JSON.stringify(php));
|
||||
core.setOutput("php-min", JSON.stringify([phpMin]));
|
||||
core.setOutput("php-max", JSON.stringify([phpMax]));
|
||||
core.setOutput("php-min", JSON.stringify([php[0]]));
|
||||
core.setOutput("php-max", JSON.stringify([php.pop()]));
|
||||
core.setOutput("branches-min", JSON.stringify([branches[0]]));
|
||||
core.setOutput("branches-max", JSON.stringify([branches.pop()]));
|
||||
core.setOutput("matrix", JSON.stringify({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue