fix blank lines inside version bumper

This commit is contained in:
Meliox 2026-06-07 13:29:52 +02:00
parent 54dd2097f0
commit 7115dc8e9a

View File

@ -97,25 +97,27 @@ jobs:
BRANCH: ${{ github.ref_name }} BRANCH: ${{ github.ref_name }}
run: | run: |
TITLE="Release v${NEW_VERSION}" TITLE="Release v${NEW_VERSION}"
BODY="## Changes since last release
${COMMITS:-No src/ changes detected.} {
echo "## Changes since last release"
echo ""
echo "${COMMITS:-No src/ changes detected.}"
echo ""
echo "---"
echo "*Merge this PR to build and publish the \`pve-mod_${NEW_VERSION}_all.deb\` release.*"
} > /tmp/pr-body.md
---
*Merge this PR to build and publish the \`pve-mod_${NEW_VERSION}_all.deb\` release.*"
# Check if a PR for this version already exists
EXISTING=$(gh pr list \ EXISTING=$(gh pr list \
--search "\"$TITLE\" in:title" \ --search "\"$TITLE\" in:title" \
--json number --jq '.[0].number' 2>/dev/null || true) --json number --jq '.[0].number' 2>/dev/null || true)
if [[ -n "$EXISTING" ]]; then if [[ -n "$EXISTING" ]]; then
gh pr edit "$EXISTING" --body "$BODY" gh pr edit "$EXISTING" --body-file /tmp/pr-body.md
echo "Updated existing PR #$EXISTING" echo "Updated existing PR #$EXISTING"
else else
gh pr create \ gh pr create \
--title "$TITLE" \ --title "$TITLE" \
--body "$BODY" \ --body-file /tmp/pr-body.md \
--base main \ --base main \
--head "$BRANCH" --head "$BRANCH"
fi fi