Skip to content

Commit

Permalink
DEV: fix artifact download
Browse files Browse the repository at this point in the history
  • Loading branch information
lbluque committed Sep 28, 2023
1 parent b3d5cab commit 95558d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run_id: context.payload.workflow_run.id,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
return artifact.name == "pr_number"
return artifact.name == "coverage"
})[0];
let download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
Expand All @@ -31,7 +31,7 @@ jobs:
archive_format: 'zip',
});
let fs = require('fs');
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/pr_number.zip`, Buffer.from(download.data));
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/coverage.zip`, Buffer.from(download.data));
- name: unzip artifact
run: unzip coverage.zip
Expand Down

0 comments on commit 95558d6

Please sign in to comment.