From f3762c4028a961cf25ba654e87b725c32c09dbb5 Mon Sep 17 00:00:00 2001 From: "U-DESKTOP-3VIS1T9\\junguler" Date: Tue, 13 Jun 2023 04:46:30 +0330 Subject: [PATCH] attempt 4, to extract the zip file --- .github/workflows/manual.yml | 3 +-- pyunzip.py | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100755 pyunzip.py diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 4b025f14c..7e13fb8f7 100755 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -10,8 +10,7 @@ jobs: - name: run commands run: | - sudo apt install p7zip-full -y - 7z x ./everything-repo.zip + python3 pyunzip.py ./everything-repo.zip - name: add & commit uses: EndBug/add-and-commit@main diff --git a/pyunzip.py b/pyunzip.py new file mode 100755 index 000000000..7d883106a --- /dev/null +++ b/pyunzip.py @@ -0,0 +1,7 @@ +#!/usr/bin/env python3 + +import sys +from zipfile import PyZipFile +for zip_file in sys.argv[1:]: + pzf = PyZipFile(zip_file) + pzf.extractall() \ No newline at end of file