Skip to content

Commit

Permalink
🐛 Fix: website preview CD (#2830)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Jul 21, 2024
1 parent 5433b4e commit 53d8989
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/website-preview-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 53d8989

Please sign in to comment.