diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index 01778bf46..9c37b0d60 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -28,11 +28,11 @@ jobs: # As of 2023-05-18, https://github.com/actions/download-artifact cannot download artifacts across workflows. # As a result, have to use the script GitHub provides to download the artifact. - name: 'Download PR number' - uses: actions/github-script@v3.1.0 + uses: actions/github-script@v7 with: script: | console.log("Starting to list artifacts"); - var artifacts = await github.actions.listWorkflowRunArtifacts({ + var artifacts = await github.rest.actions.listWorkflowRunArtifacts({ owner: context.repo.owner, repo: context.repo.repo, run_id: context.payload.workflow_run.id, @@ -42,7 +42,7 @@ jobs: return artifact.name == "pr_number" })[0]; console.log("Downloading artifacts"); - var download = await github.actions.downloadArtifact({ + var download = await github.rest.actions.downloadArtifact({ owner: context.repo.owner, repo: context.repo.repo, artifact_id: matchArtifact.id, diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2fe3b104e..e1c381a26 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,7 @@ jobs: run: | mkdir -p ./pr echo $PR_NUMBER > ./pr/pr_number.txt - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: pr_number path: pr/