This repository was archived by the owner on Jan 7, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -31,22 +31,21 @@ jobs:
3131 uses : actions/github-script@v7
3232 with :
3333 script : |
34- echo "Downloading artifact from workflow run: ${{ github.event.workflow_run.id }}"
35- var artifacts = await github.actions.listWorkflowRunArtifacts({
34+ let artifacts = await github.rest.actions.listWorkflowRunArtifacts({
3635 owner: context.repo.owner,
3736 repo: context.repo.repo,
38- run_id: ${{ github.event .workflow_run.id }} ,
37+ run_id: context.payload .workflow_run.id,
3938 });
40- var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
39+ let matchArtifact = artifacts.data.artifacts.filter((artifact) => {
4140 return artifact.name == "artifact"
4241 })[0];
43- var download = await github.actions.downloadArtifact({
42+ let download = await github.actions.downloadArtifact({
4443 owner: context.repo.owner,
4544 repo: context.repo.repo,
4645 artifact_id: matchArtifact.id,
4746 archive_format: 'zip',
4847 });
49- var fs = require('fs');
48+ const fs = require('fs');
5049 fs.writeFileSync('${{github.workspace}}/artifact.zip', Buffer.from(download.data));
5150 -
5251 name : " Unzip"
You can’t perform that action at this time.
0 commit comments