From a1932e0df69e3e0f4f643be968cc33c1913b7d39 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Sun, 15 Sep 2024 15:17:47 +1200 Subject: [PATCH] Copy manifests to root and modify --- .github/workflows/build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0252c7a..593c3bd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,6 +55,13 @@ jobs: mkdir output cp -R static/* output/ cp -R firmwares/* output/ + - name: Copy manifest files to root and modify paths # This is required so that older firmwares can update to newer firmwares with new manifest paths + run: |- + for device in firmwares/*; do + jq --arg device "$device" \ + '.builds[].ota.path |= $device + "/" + . | (.builds[].parts // [])[].path |= $device + "/" + .' \ + firmwares/$device/manifest.json > output/$device-manifest.json + done - name: Upload GitHub Pages artifact uses: actions/upload-pages-artifact@v3.0.1 with: