ci: fix generate

This commit is contained in:
Aiden Cline 2025-12-18 15:23:23 -06:00
parent 1fe87b0233
commit 323ea1040c

View file

@ -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