diff --git a/.github/workflows/create_preview_sites.yml b/.github/workflows/create_preview_sites.yml index a4d65a7c9bee7..40dd37731cba0 100644 --- a/.github/workflows/create_preview_sites.yml +++ b/.github/workflows/create_preview_sites.yml @@ -33,7 +33,7 @@ jobs: with: script: | const fs = require('fs'); - const artifacts = await github.actions.listWorkflowRunArtifacts({ + const artifacts = await github.rest.actions.listWorkflowRunArtifacts({ owner: context.repo.owner, repo: context.repo.repo, run_id: ${{ github.event.workflow_run.id }},