From ca9f6f51248d77b90e1e9945d51f28dc59108197 Mon Sep 17 00:00:00 2001 From: Mathias Lang Date: Sat, 22 Jun 2024 03:02:39 +0200 Subject: [PATCH] CI: Adapt pr_info_post to github-script v7 breaking changes Since v5, the method have been moved. This is not caught by CI as it only uses the workflow in the master branch. --- .github/workflows/pr_info_post.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr_info_post.yml b/.github/workflows/pr_info_post.yml index 67df3efb7..2fc012ba4 100644 --- a/.github/workflows/pr_info_post.yml +++ b/.github/workflows/pr_info_post.yml @@ -22,7 +22,7 @@ jobs: uses: actions/github-script@v7 with: script: | - var artifacts = await github.actions.listWorkflowRunArtifacts({ + var artifacts = await github.rest.actions.listWorkflowRunArtifacts({ owner: context.repo.owner, repo: context.repo.repo, run_id: ${{github.event.workflow_run.id }}, @@ -30,7 +30,7 @@ jobs: var matchArtifact = artifacts.data.artifacts.filter((artifact) => { return artifact.name == "pr" })[0]; - 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,