Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.

Commit 63a0fd5

Browse files
committed
more fix
1 parent 459b4d4 commit 63a0fd5

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/test_pull.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)