🐛 Fix: website preview CD (#2830)

This commit is contained in:
Ju4tCode 2024-07-21 12:14:18 +08:00 committed by GitHub
parent 5433b4ebdf
commit 53d8989145
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,