Skip to content

Commit

Permalink
Fix unzip
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Nov 14, 2024
1 parent d16980a commit d92603e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/artifact_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
1 change: 1 addition & 0 deletions scripts/download-previous-artifact.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d92603e

Please sign in to comment.