From 4bc838637766edd3dc7095cac734521e73982968 Mon Sep 17 00:00:00 2001 From: Adam Hernandez Date: Wed, 20 Dec 2023 10:20:09 -0700 Subject: [PATCH] add more stats for troubleshooting (#16) --- README.md | 4 ++-- action.yml | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7826da9..bdd4210 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ jobs: steps: ... - name: 'Zip and Upload Artifact' - uses: im-open/zip-upload-artifact@v1.1.10 + uses: im-open/zip-upload-artifact@v1.1.11 with: name: ${{ env.CODE_COVERAGE_REPORT_NAME }} path: ${{ env.CODE_COVERAGE_DIR }} @@ -47,7 +47,7 @@ jobs: steps: ... - name: Zip and Upload Files and Ignore one - uses: im-open/zip-upload-artifact@v1.1.10 + uses: im-open/zip-upload-artifact@v1.1.11 with: name: ${{ env.FILE_NAME }} path: | diff --git a/action.yml b/action.yml index 71aec9f..52a53fb 100644 --- a/action.yml +++ b/action.yml @@ -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() @@ -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")