Updated workflow

This commit is contained in:
Niklas080208
2026-02-03 19:45:49 +01:00
parent 54ded6402e
commit 9d9cf29491
2 changed files with 11 additions and 7 deletions

View File

@@ -66,6 +66,8 @@ jobs:
- name: 💻 Execute download script and capture changelog - name: 💻 Execute download script and capture changelog
id: download id: download
if: steps.version_check.outputs.new_version == 'true' if: steps.version_check.outputs.new_version == 'true'
env:
SKIP_ZIP: "1"
run: | run: |
python3 firmware_downloader.py | tee firmware_output.txt python3 firmware_downloader.py | tee firmware_output.txt
FIRMWARE_VERSION=$(grep 'Folder: Firmware ' firmware_output.txt | awk '{print $NF}') FIRMWARE_VERSION=$(grep 'Folder: Firmware ' firmware_output.txt | awk '{print $NF}')

View File

@@ -311,13 +311,15 @@ if __name__ == "__main__":
if failed: if failed:
exit(1) exit(1)
out_zip = f"{ver_dir}.zip" out_zip = f"{ver_dir}.zip"
if exists(out_zip): if not os.environ.get("SKIP_ZIP"):
remove(out_zip) if exists(out_zip):
zipdir(ver_dir, out_zip) remove(out_zip)
zipdir(ver_dir, out_zip)
print("\nDOWNLOAD COMPLETE!") print("\nDOWNLOAD COMPLETE!")
print(f"Archive created: {out_zip}") print(f"Archive created: {out_zip}")
else:
print("\nDOWNLOAD COMPLETE! (zip skipped, set by workflow)")
print(f"SystemVersion NCA FAT: {sv_nca_fat or 'Not Found'}") print(f"SystemVersion NCA FAT: {sv_nca_fat or 'Not Found'}")
print(f"SystemVersion NCA exFAT: {sv_nca_exfat or 'Not Found'}") print(f"SystemVersion NCA exFAT: {sv_nca_exfat or 'Not Found'}")
print("Verify hashes before installation!") print("Verify hashes before installation!")