From 6657aa6e74a202cf3db4199d91b61cbb8ca7b697 Mon Sep 17 00:00:00 2001 From: Adam Hernandez Date: Tue, 7 Nov 2023 15:51:03 -0700 Subject: [PATCH] more troubleshooting --- action.yml | 2 +- src/zipper.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 19b8511..07d0f8b 100644 --- a/action.yml +++ b/action.yml @@ -34,7 +34,7 @@ runs: - name: Install Python uses: actions/setup-python@v4 with: - python-version: '3.x' + python-version: '3.9' - name: Create Artifact Zip shell: bash diff --git a/src/zipper.py b/src/zipper.py index ab4b9a6..d7318b3 100644 --- a/src/zipper.py +++ b/src/zipper.py @@ -29,11 +29,11 @@ def run(self) -> str: str: The name of the zip file created """ zip_name = f"{self.name}.zip" - print("") - print(f"Creating '{zip_name}'...") - file_count = 0 + with ZipFile(zip_name, "w", ZIP_DEFLATED) as zip_writer: + + print(f"Creating '{zip_name}'...") for path in self.included_paths: print(f"Check path: {path}...") if os.path.isfile(path):