mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
ci: fix generate
This commit is contained in:
parent
1fe87b0233
commit
323ea1040c
1 changed files with 1 additions and 1 deletions
2
.github/workflows/generate.yml
vendored
2
.github/workflows/generate.yml
vendored
|
|
@ -47,7 +47,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
MESSAGE=$'Failed to push generated code. Please run locally and push:\n```\n./script/generate.ts\ngit add -A && git commit -m "chore: generate" && git push\n```'
|
MESSAGE=$'Failed to push generated code. Please run locally and push:\n```\n./script/generate.ts\ngit add -A && git commit -m "chore: generate" && git push\n```'
|
||||||
if [ -n "${{ github.event.pull_request.number }}" ]; then
|
if [ -n "${{ github.event.pull_request.number }}" ]; then
|
||||||
gh pr comment ${{ github.event.pull_request.number }} --body "$MESSAGE"
|
gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "$MESSAGE"
|
||||||
else
|
else
|
||||||
gh api repos/${{ github.repository }}/commits/${{ github.sha }}/comments -f body="$MESSAGE"
|
gh api repos/${{ github.repository }}/commits/${{ github.sha }}/comments -f body="$MESSAGE"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue