Fix HTTP 429: replace ADD remote URLs with COPY in all Dockerfiles, add retry logic and fix ha_automodules.sh

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/2244d014-7299-4b63-89e4-35683a0b4c15
This commit is contained in:
copilot-swe-agent[bot]
2026-03-26 09:07:15 +00:00
parent 5cc9005626
commit 5a19d19054
119 changed files with 794 additions and 514 deletions

View File

@@ -157,6 +157,21 @@ jobs:
fi
done
- name: Copy templates into addon build context
env:
ADDON: ${{ matrix.addon }}
run: |
set -euo pipefail
TEMPLATES_DIR=".templates"
ADDON_DIR="./$ADDON"
# Copy all template scripts that Dockerfiles might reference
for script in ha_automodules.sh ha_autoapps.sh ha_entrypoint.sh bashio-standalone.sh ha_lsio.sh; do
if [ -f "$TEMPLATES_DIR/$script" ]; then
cp "$TEMPLATES_DIR/$script" "$ADDON_DIR/$script"
fi
done
- name: Install PyYAML
run: python3 -m pip install --disable-pip-version-check pyyaml