From 7cd4bb6b09377537e100cc89663711496b635d3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hatvani=20Tam=C3=A1s?= <75033623+htamas1210@users.noreply.github.com> Date: Sun, 9 Nov 2025 14:55:23 +0100 Subject: [PATCH] Refactor subprocess call and print statement Updated subprocess command to use list format and modified print statement for clarity. --- .github/workflows/upload_data.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/upload_data.yml b/.github/workflows/upload_data.yml index 3d6118b..c46a507 100644 --- a/.github/workflows/upload_data.yml +++ b/.github/workflows/upload_data.yml @@ -29,8 +29,8 @@ jobs: creds = json.load(open("service_account.json")) gc = gspread.service_account_from_dict(creds) sh = gc.open_by_key("${{ secrets.SPREADSHEET_ID }}") - v = subprocess.run(['git rev-parse --show-toplevel'], capture_output=True).stdout.decode() - print(v) + v = subprocess.run(['git','rev-parse','--show-toplevel'], capture_output=True).stdout.strip() + print(f"{v}/test_data.log") with open(f"{v}/test_data.log", "r") as f: lines = [line.strip() for line in f if line.strip()]