From 49db5f0b0f1dccb3c498d483216ebefcf2c30ad3 Mon Sep 17 00:00:00 2001 From: Edwin Onuonga Date: Sun, 3 Dec 2023 23:06:59 +0000 Subject: [PATCH] use eof approach --- .github/workflows/create-release-pr.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index a002be7..213a4a1 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -30,13 +30,13 @@ jobs: - name: Bump version and changelog id: changelog run: | - poetry run invoke release.install release.build -- -v ${{ github.event.inputs.version }} > entry.md - cat entry.md - body=$(cat entry.md) - body="${body//'%'/'%25'}" - body="${body//$'\n'/'%0A'}" - body="${body//$'\r'/'%0D'}" - echo "body=$body" >> $GITHUB_OUTPUT + poetry run -q invoke release.install release.build -- -v ${{ github.event.inputs.version }} > entry.md + delimiter="$(openssl rand -hex 8)" + { + echo "body<<${delimiter}" + cat entry.md + echo "${delimiter}" + } >> $GITHUB_OUTPUT - name: Create pull request uses: peter-evans/create-pull-request@v5.0.2 with: