mirror of
https://github.com/icewind1991/nextcloud-version-matrix.git
synced 2026-06-03 17:44:08 +02:00
also output branches for nextcloud/ocp
This commit is contained in:
parent
a82a7d40fd
commit
bacd550fea
2 changed files with 6 additions and 4 deletions
5
dist/index.js
vendored
5
dist/index.js
vendored
|
|
@ -38852,9 +38852,10 @@ function onlyUnique(value, index, array) {
|
||||||
|
|
||||||
core.setOutput("versions", JSON.stringify(versions));
|
core.setOutput("versions", JSON.stringify(versions));
|
||||||
|
|
||||||
const branches = matrix.map(matrix => matrix["server-versions"]);
|
const branches = matrix.map(matrix => matrix["server-versions"]).filter(onlyUnique);
|
||||||
|
|
||||||
core.setOutput("branches", JSON.stringify(branches.filter(onlyUnique)));
|
core.setOutput("branches", JSON.stringify(branches));
|
||||||
|
core.setOutput("ocp-branches", JSON.stringify(branches.map(branch => `dev-${branch}`)));
|
||||||
core.setOutput("matrix", JSON.stringify({
|
core.setOutput("matrix", JSON.stringify({
|
||||||
include: matrix
|
include: matrix
|
||||||
}));
|
}));
|
||||||
|
|
|
||||||
|
|
@ -64,9 +64,10 @@ function onlyUnique(value, index, array) {
|
||||||
|
|
||||||
core.setOutput("versions", JSON.stringify(versions));
|
core.setOutput("versions", JSON.stringify(versions));
|
||||||
|
|
||||||
const branches = matrix.map(matrix => matrix["server-versions"]);
|
const branches = matrix.map(matrix => matrix["server-versions"]).filter(onlyUnique);
|
||||||
|
|
||||||
core.setOutput("branches", JSON.stringify(branches.filter(onlyUnique)));
|
core.setOutput("branches", JSON.stringify(branches));
|
||||||
|
core.setOutput("ocp-branches", JSON.stringify(branches.map(branch => `dev-${branch}`)));
|
||||||
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