also output single item min/max

This commit is contained in:
Robin Appelman 2023-11-03 15:46:31 +01:00
commit c2bf575a35
2 changed files with 22 additions and 8 deletions

15
dist/index.js vendored
View file

@ -38889,10 +38889,17 @@ function onlyUnique(value, index, array) {
core.setOutput("branches", JSON.stringify(branches)); core.setOutput("branches", JSON.stringify(branches));
core.setOutput("ocp-branches", JSON.stringify(branches.map(branch => `dev-${branch}`))); core.setOutput("ocp-branches", JSON.stringify(branches.map(branch => `dev-${branch}`)));
core.setOutput("php-versions", JSON.stringify(php)); core.setOutput("php-versions", JSON.stringify(php));
core.setOutput("php-min", JSON.stringify([php[0]]));
core.setOutput("php-max", JSON.stringify([php.pop()])); core.setOutput("php-min-list", JSON.stringify([php[0]]));
core.setOutput("branches-min", JSON.stringify([branches[0]])); core.setOutput("php-max-list", JSON.stringify([php[php.length - 1]]));
core.setOutput("branches-max", JSON.stringify([branches.pop()])); core.setOutput("branches-min-list", JSON.stringify([branches[0]]));
core.setOutput("branches-max-list", JSON.stringify([branches[branches.length - 1]]));
core.setOutput("php-min", php[0]);
core.setOutput("php-max", php[php.length - 1]);
core.setOutput("branches-min", branches[0]);
core.setOutput("branches-max", branches[branches.length - 1]);
core.setOutput("matrix", JSON.stringify({ core.setOutput("matrix", JSON.stringify({
include: matrix include: matrix
})); }));

View file

@ -101,10 +101,17 @@ function onlyUnique(value, index, array) {
core.setOutput("branches", JSON.stringify(branches)); core.setOutput("branches", JSON.stringify(branches));
core.setOutput("ocp-branches", JSON.stringify(branches.map(branch => `dev-${branch}`))); core.setOutput("ocp-branches", JSON.stringify(branches.map(branch => `dev-${branch}`)));
core.setOutput("php-versions", JSON.stringify(php)); core.setOutput("php-versions", JSON.stringify(php));
core.setOutput("php-min", JSON.stringify([php[0]]));
core.setOutput("php-max", JSON.stringify([php.pop()])); core.setOutput("php-min-list", JSON.stringify([php[0]]));
core.setOutput("branches-min", JSON.stringify([branches[0]])); core.setOutput("php-max-list", JSON.stringify([php[php.length - 1]]));
core.setOutput("branches-max", JSON.stringify([branches.pop()])); core.setOutput("branches-min-list", JSON.stringify([branches[0]]));
core.setOutput("branches-max-list", JSON.stringify([branches[branches.length - 1]]));
core.setOutput("php-min", php[0]);
core.setOutput("php-max", php[php.length - 1]);
core.setOutput("branches-min", branches[0]);
core.setOutput("branches-max", branches[branches.length - 1]);
core.setOutput("matrix", JSON.stringify({ core.setOutput("matrix", JSON.stringify({
include: matrix include: matrix
})); }));