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
|
- 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}')
|
||||||
|
|||||||
@@ -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!")
|
||||||
Reference in New Issue
Block a user