new lines added to GH output

This commit is contained in:
pseusys
2023-02-26 10:52:56 +01:00
parent aae864e924
commit 389a64085e
2 changed files with 4 additions and 5 deletions

View File

@@ -62,7 +62,7 @@ jobs:
DEBUG_RUN: True # This is for testing purpose only not for production DEBUG_RUN: True # This is for testing purpose only not for production
run: python3 sources/main.py run: python3 sources/main.py
- name: Create Comment - name: Create Comment 💬
uses: jungwinter/comment@v1 uses: jungwinter/comment@v1
with: with:
type: create type: create

View File

@@ -118,13 +118,12 @@ class GitHubManager:
prefix = "README stats current output:" prefix = "README stats current output:"
eol = "".join(choice(ascii_letters) for _ in range(10)) eol = "".join(choice(ascii_letters) for _ in range(10))
with open(environ["GITHUB_OUTPUT"], "a") as fh: with open(environ["GITHUB_OUTPUT"], "a") as fh:
fh.write(f"README_CONTENT<<{eol}") fh.write(f"README_CONTENT<<{eol}\n")
fh.write(f"{prefix}\n\n{stats}") fh.write(f"{prefix}\n\n{stats}\n")
fh.write(eol) fh.write(f"{eol}\n")
DBM.g("Action output set!") DBM.g("Action output set!")
@staticmethod @staticmethod
def update_chart(chart_path: str): def update_chart(chart_path: str):
""" """