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,