From 50b01b7c0a0f4b02eb3f952474d097a8bd0ada4e Mon Sep 17 00:00:00 2001 From: Jonathan Langevin Date: Wed, 7 Aug 2024 01:13:00 -0400 Subject: [PATCH] Correcting filename reference --- index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index ba6338d..532f4dc 100644 --- a/index.js +++ b/index.js @@ -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); @@ -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 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy