From 5e9d7f435dcd9bf192395c3823c37cdc2de68d42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20W=C3=BCstenberg?= Date: Fri, 10 Jan 2025 10:45:20 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf881c7..c975c60 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,7 +68,12 @@ jobs: - name: Read $GITHUB_STEP_SUMMARY file id: getsummary - run: echo "summary=$(cat $GITHUB_STEP_SUMMARY)" >> $GITHUB_OUTPUT + run: | + content=$(cat $GITHUB_STEP_SUMMARY) + content="${content//'%'/'%25'}" + content="${content//$'\n'/'%0A'}" + content="${content//$'\r'/'%0D'}" + echo "summary=$content" >> $GITHUB_OUTPUT - name: Add evals comment to PR uses: actions/github-script@v7 @@ -78,7 +83,7 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number, - body: "${{ steps.getsummary.outputs.summary }}" + body: `${{ steps.getsummary.outputs.summary }}` }) - uses: actions/upload-artifact@v4