Skip to content

Commit 47bfd07

Browse files
authored
Fix matrix_key ref (#20)
The json was using `"matrix_key"` as a string literal instead of referencing the `matrix_key` variable. This PR fixes the issue.
1 parent 62b3e88 commit 47bfd07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ ${error}`;
6262
core.setOutput('result', JSON.stringify(outputs_struct))
6363

6464
if (!isEmptyInput(outputs)) {
65-
const artifact_content = isEmptyInput(matrix_key) ? outputs_struct : { matrix_key: outputs_struct }
65+
const artifact_content = isEmptyInput(matrix_key) ? outputs_struct : { [matrix_key]: outputs_struct }
6666

6767
fs.writeFileSync("./" + step_name, JSON.stringify(artifact_content));
6868
const fileBuffer = fs.readFileSync("./" + step_name);
@@ -86,4 +86,4 @@ ${error}`;
8686
}
8787
} catch (error) {
8888
core.setFailed(error.message);
89-
}
89+
}

0 commit comments

Comments
 (0)