From f8e75f53b8168fc00074a9c84ad572b4b34ed46a Mon Sep 17 00:00:00 2001 From: Leander Schulten Date: Sun, 20 Mar 2022 19:24:23 +0100 Subject: [PATCH] Fix github actions --- .github/workflows/trustedPR.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/trustedPR.yml b/.github/workflows/trustedPR.yml index 53518c0f533d9f..4ae202ec34c8cd 100644 --- a/.github/workflows/trustedPR.yml +++ b/.github/workflows/trustedPR.yml @@ -20,7 +20,7 @@ jobs: uses: actions/github-script@v6 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 }}, @@ -28,7 +28,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,