mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-20 02:08:20 +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
|
uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
github.repos.createCommitStatus({
|
github.rest.repos.createCommitStatus({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
sha: context.payload.workflow_run.head_sha,
|
sha: context.payload.workflow_run.head_sha,
|
||||||
@ -75,7 +75,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
if (context.job.status === 'success') {
|
if (context.job.status === 'success') {
|
||||||
github.repos.createCommitStatus({
|
github.rest.repos.createCommitStatus({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
sha: context.payload.workflow_run.head_sha,
|
sha: context.payload.workflow_run.head_sha,
|
||||||
@ -85,7 +85,7 @@ jobs:
|
|||||||
target_url: `${{ steps.deploy.outputs.deploy-url }}`,
|
target_url: `${{ steps.deploy.outputs.deploy-url }}`,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
github.repos.createCommitStatus({
|
github.rest.repos.createCommitStatus({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
sha: context.payload.workflow_run.head_sha,
|
sha: context.payload.workflow_run.head_sha,
|
||||||
|
Loading…
Reference in New Issue
Block a user