From 997c13ec6a384424221a9bbbfbebaffa816e3e87 Mon Sep 17 00:00:00 2001 From: Niklas080208 Date: Tue, 3 Feb 2026 19:38:20 +0100 Subject: [PATCH] Updated workflow --- .github/workflows/firmware-autodl.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/firmware-autodl.yml b/.github/workflows/firmware-autodl.yml index 2c9f518..2fecd17 100644 --- a/.github/workflows/firmware-autodl.yml +++ b/.github/workflows/firmware-autodl.yml @@ -84,19 +84,12 @@ jobs: const changelogBody = fs.readFileSync('changelog_body.txt', 'utf8'); core.setOutput('release_body', changelogBody); - - name: 📦 Create firmware zip (exclude .nca.1) + - name: 📦 Create firmware zip if: steps.version_check.outputs.new_version == 'true' run: | VER="${{ steps.download.outputs.firmware_version }}" DIR="Firmware $VER" - EXCLUDED=$(find "$DIR" -name "*.nca.1" | wc -l) - echo "Excluding $EXCLUDED variant files (.nca.1) from zip" - - # Copy only non-.nca.1 files into a temp dir, then zip (avoids zip -x path matching issues) - rm -rf zip_staging && mkdir -p "zip_staging/$DIR" - find "$DIR" -type f ! -name "*.nca.1" -exec sh -c 'cp "$1" "zip_staging/$1"' _ {} \; - (cd zip_staging && zip -r "../$DIR.zip" "$DIR") - rm -rf zip_staging + zip -r "$DIR.zip" "$DIR" echo "Zip created: $DIR.zip" - name: 📦 Create Tag and Release @@ -116,7 +109,6 @@ jobs: --- - ℹ️ Excluded variant files (.nca.1): see workflow logs files: | Firmware ${{ steps.download.outputs.firmware_version }}.zip env: