mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
fix(ci): fix YAML syntax error on line 60 in regenerate-poetry-lock workflow
Heredoc inside \$() inside a YAML multiline string breaks the YAML parser. Replaced with: write body to /tmp/pr-body.md, then pass --body-file to gh. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b9e79cc07b
commit
8bf392c1df
1 changed files with 15 additions and 12 deletions
27
.github/workflows/regenerate-poetry-lock.yml
vendored
27
.github/workflows/regenerate-poetry-lock.yml
vendored
|
|
@ -54,20 +54,23 @@ jobs:
|
|||
git add poetry.lock
|
||||
git commit -m "chore: regenerate poetry.lock to match pyproject.toml"
|
||||
git push -f origin "$BRANCH"
|
||||
|
||||
# Write body to a temp file to avoid heredoc/quoting issues in YAML
|
||||
cat > /tmp/pr-body.md << 'BODY'
|
||||
Automated regeneration of `poetry.lock` after `pyproject.toml` was updated on `main`.
|
||||
|
||||
Fixes the recurring CI failure:
|
||||
```
|
||||
pyproject.toml changed significantly since poetry.lock was last generated.
|
||||
Run `poetry lock` to fix the lock file.
|
||||
```
|
||||
|
||||
Regenerated with `poetry lock --no-update` (existing package versions are preserved; only the lock file metadata is updated to match the new constraints).
|
||||
BODY
|
||||
|
||||
gh pr create \
|
||||
--title "chore: regenerate poetry.lock to match pyproject.toml" \
|
||||
--body "$(cat <<'EOF'
|
||||
Automated regeneration of \`poetry.lock\` after \`pyproject.toml\` was updated on \`main\`.
|
||||
|
||||
Fixes the recurring CI failure:
|
||||
\`\`\`
|
||||
pyproject.toml changed significantly since poetry.lock was last generated.
|
||||
Run \`poetry lock\` to fix the lock file.
|
||||
\`\`\`
|
||||
|
||||
Regenerated with \`poetry lock --no-update\` (existing package versions are preserved; only the lock file metadata is updated to match the new constraints).
|
||||
EOF
|
||||
)" \
|
||||
--body-file /tmp/pr-body.md \
|
||||
--head "$BRANCH" \
|
||||
--base main
|
||||
env:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue