mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 05:43:55 +00:00
ci: fix generate
This commit is contained in:
parent
1fe87b0233
commit
323ea1040c
2
.github/workflows/generate.yml
vendored
2
.github/workflows/generate.yml
vendored
@ -47,7 +47,7 @@ jobs:
|
||||
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```'
|
||||
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
|
||||
gh api repos/${{ github.repository }}/commits/${{ github.sha }}/comments -f body="$MESSAGE"
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user