mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
Using pprint for debugging outputs.
This commit is contained in:
6
.github/workflows/Parameters.yml
vendored
6
.github/workflows/Parameters.yml
vendored
@@ -65,6 +65,8 @@ jobs:
|
|||||||
id: params
|
id: params
|
||||||
shell: python
|
shell: python
|
||||||
run: |
|
run: |
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
name = "${{ inputs.name }}".strip()
|
name = "${{ inputs.name }}".strip()
|
||||||
pythonVersion = "${{ inputs.python_version }}".strip()
|
pythonVersion = "${{ inputs.python_version }}".strip()
|
||||||
systems = "${{ inputs.system_list }}".strip()
|
systems = "${{ inputs.system_list }}".strip()
|
||||||
@@ -86,7 +88,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
print(f"::set-output name=params::{params!s}")
|
print(f"::set-output name=params::{params!s}")
|
||||||
print("Parameters:")
|
print("Parameters:")
|
||||||
print(params)
|
pprint(params, indent=2)
|
||||||
|
|
||||||
if systems == "":
|
if systems == "":
|
||||||
print("::error title=Parameter::system_list is empty.")
|
print("::error title=Parameter::system_list is empty.")
|
||||||
@@ -163,4 +165,4 @@ jobs:
|
|||||||
]
|
]
|
||||||
print(f'::set-output name=python_jobs::{jobs!s}')
|
print(f'::set-output name=python_jobs::{jobs!s}')
|
||||||
print("Python jobs:")
|
print("Python jobs:")
|
||||||
print(jobs)
|
pprint(jobs, indent=2)
|
||||||
|
|||||||
Reference in New Issue
Block a user