Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

add more stats for troubleshooting #16

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
steps:
...
- name: 'Zip and Upload Artifact'
uses: im-open/[email protected].10
uses: im-open/[email protected].11
with:
name: ${{ env.CODE_COVERAGE_REPORT_NAME }}
path: ${{ env.CODE_COVERAGE_DIR }}
Expand All @@ -47,7 +47,7 @@ jobs:
steps:
...
- name: Zip and Upload Files and Ignore one
uses: im-open/[email protected].10
uses: im-open/[email protected].11
with:
name: ${{ env.FILE_NAME }}
path: |
Expand Down
8 changes: 5 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ runs:
discovered_paths = glob.glob(path_value, recursive=True)
paths.extend(discovered_paths)

print(f"Discovered {len(paths)} {list_type} paths: {', '.join(paths)}")
print(f"Discovered {len(paths)} {list_type} paths: {os.linesep + '- '.join(paths)}")
return paths

print()
Expand All @@ -105,12 +105,14 @@ runs:

print("Inputs")
file_name = os.environ['FILE_NAME'].strip()
print(f"- Name: {file_name}")
print(f"- Name: '{file_name}'")

file_path = os.environ['FILE_PATH'].splitlines()
print(f"- Path: {', '.join(file_path)}")
print(f"- Path: '{', '.join(file_path)}'")

root_paths = get_root_paths(file_path)
print(f"- Root Paths: '{', '.join(root_paths)}'")

included_paths = get_paths(file_path, list_type="included")
excluded_paths = get_paths(file_path, list_type="excluded")

Expand Down