mirror of
https://github.com/icewind1991/nextcloud-version-matrix.git
synced 2026-06-03 17:44:08 +02:00
also output single item min/max
This commit is contained in:
parent
111919cfc7
commit
c2bf575a35
2 changed files with 22 additions and 8 deletions
15
dist/index.js
vendored
15
dist/index.js
vendored
|
|
@ -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
|
||||||
}));
|
}));
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}));
|
}));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue