Skip to content

Commit fd45dc9

Browse files
authored
ci: fix outdated versions (#217)
* ci: bump the action version * Update deployment.yml * Update deployment.yml
1 parent fffb0af commit fd45dc9

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

.github/workflows/deployment.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +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));
37-
- run: unzip pr.zip
20+
run-id: ${{github.event.workflow_run.id }}
3821

3922
- name: "Save PR number to env.number"
4023
run: echo "number=$(cat ./pr/NR)" >> $GITHUB_ENV

.github/workflows/receive-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
mkdir -p ./pr
3434
echo ${{ github.event.number }} > ./pr/NR
3535
36-
- uses: actions/upload-artifact@v3
36+
- uses: actions/upload-artifact@v4
3737
with:
3838
name: pr
3939
path: |

0 commit comments

Comments
 (0)