Improve for matrix

Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
This commit is contained in:
Angela P Wen
2022-08-01 11:52:03 +02:00
committed by GitHub
parent ebc59ec8da
commit af87cc6ba5

View File

@@ -887,7 +887,7 @@ export async function uploadDebugArtifacts(
}
let suffix = "";
const matrix = getRequiredInput("matrix");
if (matrix !== undefined && matrix !== "null") {
if (matrix) {
for (const entry of Object.entries(JSON.parse(matrix)).sort())
suffix += `-${entry[1]}`;
}