File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ jobs:
2828 # As of 2023-05-18, https://github.com/actions/download-artifact cannot download artifacts across workflows.
2929 # As a result, have to use the script GitHub provides to download the artifact.
3030 - name : ' Download PR number'
31- uses : actions/github-script@v3.1.0
31+ uses : actions/github-script@v7
3232 with :
3333 script : |
3434 console.log("Starting to list artifacts");
35- var artifacts = await github.actions.listWorkflowRunArtifacts({
35+ var artifacts = await github.rest. actions.listWorkflowRunArtifacts({
3636 owner: context.repo.owner,
3737 repo: context.repo.repo,
3838 run_id: context.payload.workflow_run.id,
4242 return artifact.name == "pr_number"
4343 })[0];
4444 console.log("Downloading artifacts");
45- var download = await github.actions.downloadArtifact({
45+ var download = await github.rest. actions.downloadArtifact({
4646 owner: context.repo.owner,
4747 repo: context.repo.repo,
4848 artifact_id: matchArtifact.id,
Original file line number Diff line number Diff line change 2929 run : |
3030 mkdir -p ./pr
3131 echo $PR_NUMBER > ./pr/pr_number.txt
32- - uses : actions/upload-artifact@v3
32+ - uses : actions/upload-artifact@v4
3333 with :
3434 name : pr_number
3535 path : pr/
You can’t perform that action at this time.
0 commit comments