Skip to content

Commit 851ce88

Browse files
authored
Update deployment.yml
1 parent b2f9a96 commit 851ce88

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

.github/workflows/deployment.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,9 @@ jobs:
1515
github.event.workflow_run.conclusion == 'success'
1616
steps:
1717
- name: "Download artifact"
18-
uses: actions/github-script@v3.1.0
18+
uses: actions/download-artifact@v4
1919
with:
20-
script: |
21-
var artifacts = await github.actions.listWorkflowRunArtifacts({
22-
owner: context.repo.owner,
23-
repo: context.repo.repo,
24-
run_id: ${{github.event.workflow_run.id }},
25-
});
26-
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
27-
return artifact.name == "pr"
28-
})[0];
29-
var download = await github.actions.downloadArtifact({
30-
owner: context.repo.owner,
31-
repo: context.repo.repo,
32-
artifact_id: matchArtifact.id,
33-
archive_format: 'zip',
34-
});
35-
var fs = require('fs');
36-
fs.writeFileSync('${{github.workspace}}/pr.zip', Buffer.from(download.data));
20+
name: pr.zip
3721
- run: unzip pr.zip
3822

3923
- name: "Save PR number to env.number"

0 commit comments

Comments
 (0)