From b5238d649950a69a9d04fea6a56c7a1a5072b09a Mon Sep 17 00:00:00 2001 From: Devin Smith Date: Tue, 22 Mar 2022 12:58:03 -0700 Subject: [PATCH] Fix publish-check-ci.yml From https://github.com/actions/github-script/issues/242 --- .github/workflows/publish-check-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-check-ci.yml b/.github/workflows/publish-check-ci.yml index 170e8165d86..7334475a928 100644 --- a/.github/workflows/publish-check-ci.yml +++ b/.github/workflows/publish-check-ci.yml @@ -21,7 +21,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 }}, @@ -29,7 +29,7 @@ jobs: var matchArtifact = artifacts.data.artifacts.filter((artifact) => { return artifact.name == "check-ci-results" })[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,