Updated workflow
This commit is contained in:
2
.github/workflows/firmware-autodl.yml
vendored
2
.github/workflows/firmware-autodl.yml
vendored
@@ -66,6 +66,8 @@ jobs:
|
||||
- name: 💻 Execute download script and capture changelog
|
||||
id: download
|
||||
if: steps.version_check.outputs.new_version == 'true'
|
||||
env:
|
||||
SKIP_ZIP: "1"
|
||||
run: |
|
||||
python3 firmware_downloader.py | tee firmware_output.txt
|
||||
FIRMWARE_VERSION=$(grep 'Folder: Firmware ' firmware_output.txt | awk '{print $NF}')
|
||||
|
||||
@@ -311,13 +311,15 @@ if __name__ == "__main__":
|
||||
if failed:
|
||||
exit(1)
|
||||
|
||||
out_zip = f"{ver_dir}.zip"
|
||||
if exists(out_zip):
|
||||
remove(out_zip)
|
||||
zipdir(ver_dir, out_zip)
|
||||
|
||||
print("\nDOWNLOAD COMPLETE!")
|
||||
print(f"Archive created: {out_zip}")
|
||||
out_zip = f"{ver_dir}.zip"
|
||||
if not os.environ.get("SKIP_ZIP"):
|
||||
if exists(out_zip):
|
||||
remove(out_zip)
|
||||
zipdir(ver_dir, out_zip)
|
||||
print("\nDOWNLOAD COMPLETE!")
|
||||
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 exFAT: {sv_nca_exfat or 'Not Found'}")
|
||||
print("Verify hashes before installation!")
|
||||
Reference in New Issue
Block a user