diff --git a/preview-deployments/deploy/action.yml b/preview-deployments/deploy/action.yml index befd885..e1a506f 100644 --- a/preview-deployments/deploy/action.yml +++ b/preview-deployments/deploy/action.yml @@ -19,7 +19,7 @@ runs: 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 }}, @@ -27,7 +27,7 @@ runs: 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, @@ -43,10 +43,10 @@ runs: shell: bash - name: Download built site artifact 📦 - uses: actions/github-script@v3.1.0 + 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 }}, @@ -54,7 +54,7 @@ runs: var matchArtifact = artifacts.data.artifacts.filter((artifact) => { return artifact.name == "pr_site" })[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,