fix: use escaped newlines in PR body to avoid YAML parsing error

This commit is contained in:
m3tm3re
2026-01-14 20:39:40 +01:00
parent 0f4435ad93
commit c5d5ff98f8

View File

@@ -178,20 +178,12 @@ env:
# Get commit messages for PR description
COMMITS=$(git log origin/master..origin/"${BRANCH}" --pretty=format:"%h %s" | sed 's/^/- /')
PR_BODY="Automated package updates using nix-update.
Updated packages:
${PACKAGES}
Commits:
${COMMITS}"
# Create PR
/tmp/tea pr create \
--head "${BRANCH}" \
--base master \
--title "chore: update packages with nix-update" \
--body "${PR_BODY}" \
--body "Automated package updates using nix-update.\n\nUpdated packages:\n${PACKAGES}\n\nCommits:\n${COMMITS}" \
--assignees m3tam3re \
--labels automated-update || echo "Failed to create PR. Please create manually."