mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-19 17:58:26 +08:00
🐛 Fix: website preview CD (#2830)
This commit is contained in:
parent
5433b4ebdf
commit
53d8989145
6
.github/workflows/website-preview-cd.yml
vendored
6
.github/workflows/website-preview-cd.yml
vendored
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user