From 389a64085e055a6097b4c6d6163d7d25c506d766 Mon Sep 17 00:00:00 2001 From: pseusys Date: Sun, 26 Feb 2023 10:52:56 +0100 Subject: [PATCH] new lines added to GH output --- .github/workflows/review_pr.yml | 2 +- sources/manager_github.py | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/review_pr.yml b/.github/workflows/review_pr.yml index 777bc63..8c13e2f 100644 --- a/.github/workflows/review_pr.yml +++ b/.github/workflows/review_pr.yml @@ -62,7 +62,7 @@ jobs: DEBUG_RUN: True # This is for testing purpose only not for production run: python3 sources/main.py - - name: Create Comment + - name: Create Comment 💬 uses: jungwinter/comment@v1 with: type: create diff --git a/sources/manager_github.py b/sources/manager_github.py index e34588d..89cec06 100644 --- a/sources/manager_github.py +++ b/sources/manager_github.py @@ -118,13 +118,12 @@ class GitHubManager: prefix = "README stats current output:" eol = "".join(choice(ascii_letters) for _ in range(10)) with open(environ["GITHUB_OUTPUT"], "a") as fh: - fh.write(f"README_CONTENT<<{eol}") - fh.write(f"{prefix}\n\n{stats}") - fh.write(eol) + fh.write(f"README_CONTENT<<{eol}\n") + fh.write(f"{prefix}\n\n{stats}\n") + fh.write(f"{eol}\n") DBM.g("Action output set!") - @staticmethod def update_chart(chart_path: str): """