From 221696c46aa2002d8a7bdf18153f114562c9071e Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Wed, 26 Oct 2022 21:49:48 +0200 Subject: [PATCH] Using pprint for debugging outputs. --- .github/workflows/Parameters.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Parameters.yml b/.github/workflows/Parameters.yml index ca87f3e..fad2da5 100644 --- a/.github/workflows/Parameters.yml +++ b/.github/workflows/Parameters.yml @@ -65,6 +65,8 @@ jobs: id: params shell: python run: | + from pprint import pprint + name = "${{ inputs.name }}".strip() pythonVersion = "${{ inputs.python_version }}".strip() systems = "${{ inputs.system_list }}".strip() @@ -86,7 +88,7 @@ jobs: } print(f"::set-output name=params::{params!s}") print("Parameters:") - print(params) + pprint(params, indent=2) if systems == "": print("::error title=Parameter::system_list is empty.") @@ -163,4 +165,4 @@ jobs: ] print(f'::set-output name=python_jobs::{jobs!s}') print("Python jobs:") - print(jobs) + pprint(jobs, indent=2)