diff --git a/.github/workflows/artifact_pipeline.yml b/.github/workflows/artifact_pipeline.yml index 28dba8c..54b6452 100644 --- a/.github/workflows/artifact_pipeline.yml +++ b/.github/workflows/artifact_pipeline.yml @@ -27,7 +27,7 @@ jobs: env: WORKFLOW_FILENAME: artifact_pipeline.yml ARTIFACT_NAME: data - ARTIFACT_FILENAME: data.json + ARTIFACT_FILENAME: data.zip with: script: | const script = require('./scripts/download-previous-artifact.js') diff --git a/scripts/download-previous-artifact.js b/scripts/download-previous-artifact.js index b3ab288..48625cb 100644 --- a/scripts/download-previous-artifact.js +++ b/scripts/download-previous-artifact.js @@ -48,6 +48,7 @@ module.exports = async ({ archive_format: 'zip' }); require('fs').writeFileSync(process.env.ARTIFACT_FILENAME, Buffer.from(response.data)); + require('child_process').execSync(`unzip ${process.env.ARTIFACT_FILENAME}`); console.log("Artifact downloaded successfully"); } else {