From 53d8989145c27786b6da897c270b61d0b6f750a0 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Sun, 21 Jul 2024 12:14:18 +0800 Subject: [PATCH] :bug: Fix: website preview CD (#2830) --- .github/workflows/website-preview-cd.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/website-preview-cd.yml b/.github/workflows/website-preview-cd.yml index c113ef8d..ac481763 100644 --- a/.github/workflows/website-preview-cd.yml +++ b/.github/workflows/website-preview-cd.yml @@ -27,7 +27,7 @@ jobs: uses: actions/github-script@v7 with: script: | - github.repos.createCommitStatus({ + github.rest.repos.createCommitStatus({ owner: context.repo.owner, repo: context.repo.repo, sha: context.payload.workflow_run.head_sha, @@ -75,7 +75,7 @@ jobs: with: script: | if (context.job.status === 'success') { - github.repos.createCommitStatus({ + github.rest.repos.createCommitStatus({ owner: context.repo.owner, repo: context.repo.repo, sha: context.payload.workflow_run.head_sha, @@ -85,7 +85,7 @@ jobs: target_url: `${{ steps.deploy.outputs.deploy-url }}`, }) } else { - github.repos.createCommitStatus({ + github.rest.repos.createCommitStatus({ owner: context.repo.owner, repo: context.repo.repo, sha: context.payload.workflow_run.head_sha,