Skip to content

Commit

Permalink
also generate matrix for ocp branches
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Nov 3, 2023
1 parent 8238a96 commit 334a77e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38948,6 +38948,15 @@ function copy(obj) {
include: matrix
}));

core.setOutput("ocp-matrix", JSON.stringify({
include: matrix.map(row => {
const ocpVersion = `dev-${row["server-versions"]}`;
delete row["server-versions"];
row["ocp-version"] = ocpVersion;
return row;
})
}));

} catch (error) {
core.setFailed(error.message);
}
Expand Down
9 changes: 9 additions & 0 deletions src/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,15 @@ function copy(obj) {
include: matrix
}));

core.setOutput("ocp-matrix", JSON.stringify({
include: matrix.map(row => {
const ocpVersion = `dev-${row["server-versions"]}`;
delete row["server-versions"];
row["ocp-version"] = ocpVersion;
return row;
})
}));

} catch (error) {
core.setFailed(error.message);
}
Expand Down

0 comments on commit 334a77e

Please sign in to comment.