Merge pull request #21615 from BerriAI/fix/regenerate-poetry-lock-yaml-syntax

fix(ci): fix YAML syntax error in regenerate-poetry-lock workflow
This commit is contained in:
jquinter 2026-02-19 19:47:36 -03:00 committed by GitHub
commit a6af0425ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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