From dd7dfd85021629d311004c84b7ca56b25f3bbf6a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 29 Apr 2026 17:28:07 +0000 Subject: [PATCH] fix: use multiline heredoc output to avoid URL-encoded newlines in release body Agent-Logs-Url: https://github.com/funkemunky/AntiVPN/sessions/23c299d0-3c90-4eaa-9716-59c61aeea471 Co-authored-by: funkemunky <30784509+funkemunky@users.noreply.github.com> --- .github/workflows/create-release.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 7bba1ff..039ab19 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -31,10 +31,13 @@ jobs: id: changelog run: | CHANGELOG_CONTENT=$(awk 'BEGIN {print_section=0;} /^## \[/ {if (print_section == 0) {print_section=1;} else {exit;}} print_section {print;}' CHANGELOG.md) - CHANGELOG_ESCAPED=$(echo "$CHANGELOG_CONTENT" | sed ':a;N;$!ba;s/\n/%0A/g') - echo "Extracted latest release notes from CHANGELOG.md:" - echo -e "$CHANGELOG_CONTENT" - echo "content=$CHANGELOG_ESCAPED" >> "$GITHUB_OUTPUT" + echo "Extracted latest release notes from CHANGELOG.md:" + echo -e "$CHANGELOG_CONTENT" + { + echo "content<> "$GITHUB_OUTPUT" - name: Create Release uses: actions/create-release@v1 id: create_release