Skip to content

Commit

Permalink
Correcting filename reference
Browse files Browse the repository at this point in the history
  • Loading branch information
intel352 committed Aug 7, 2024
1 parent 02a84ff commit 50b01b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ ${error}`;

if (!isEmptyInput(outputs) && matrix_mode) {
const artifact_content = { [matrix_key]: outputs_struct }
const filename = "./" + step_name +"-"+ matrix_key

fs.writeFileSync("./" + step_name, JSON.stringify(artifact_content));
const fileBuffer = fs.readFileSync("./" + step_name);
fs.writeFileSync(filename, JSON.stringify(artifact_content));
const fileBuffer = fs.readFileSync(filename);
const hashSum = crypto.createHash('sha256');
hashSum.update(fileBuffer);

Expand All @@ -76,7 +77,7 @@ ${error}`;
const artifactClient = new DefaultArtifactClient();
const artifactName = hex;
const files = [
"./" + step_name +"-"+ matrix_key,
filename,
]

const rootDirectory = '.' // Also possible to use __dirname
Expand Down

0 comments on commit 50b01b7

Please sign in to comment.