diff --git a/.github/workflows/build-action.yml b/.github/workflows/build-action.yml index 48bb5fa47..f79441bee 100644 --- a/.github/workflows/build-action.yml +++ b/.github/workflows/build-action.yml @@ -38,8 +38,6 @@ jobs: sudo -E bash -c set sudo apt-get update sudo apt-get install --yes libarchive-zip-perl dos2unix systemd-container qemu-user-static qemu-utils - #echo "::set-output name=image32::$(basename "$(curl "https://downloads.raspberrypi.org/raspios_lite_armhf_latest" -s -L -I -o /dev/null -w '%{url_effective}')")" - #echo "::set-output name=image64::$(basename "$(curl "https://downloads.raspberrypi.org/raspios_lite_arm64_latest" -s -L -I -o /dev/null -w '%{url_effective}')")" echo "image32=$(basename "$(curl "https://downloads.raspberrypi.org/raspios_lite_armhf_latest" -s -L -I -o /dev/null -w '%{url_effective}')")" >> $GITHUB_OUTPUT echo "image64=$(basename "$(curl "https://downloads.raspberrypi.org/raspios_lite_arm64_latest" -s -L -I -o /dev/null -w '%{url_effective}')")" >> $GITHUB_OUTPUT - name: Cache Raspberry Pi OS 32bit image @@ -56,8 +54,13 @@ jobs: id: build run: | sudo -E ./tests/ci-setup.bash github ${{ github.ref_name }} - sed -i -e "s|^userpw=.*$|userpw=\"${{secrets.USERPW}}\"|g" build-image/openhabian.pi-raspios32.conf - sed -i -e "s|^userpw=.*$|userpw=\"${{secrets.USERPW}}\"|g" build-image/openhabian.pi-raspios64.conf + for f in "openhabian.conf openhabian.pi-raspios32.conf openhabian.pi-raspios64.conf"; do + if [[ -f build-image/$f ]]; then + sed -i -e "s|^userpw=.*$|userpw=\"${{secrets.USERPW}}\"|g" build-image/$f + fi + done + #sed -i -e "s|^userpw=.*$|userpw=\"${{secrets.USERPW}}\"|g" build-image/openhabian.pi-raspios32.conf + #sed -i -e "s|^userpw=.*$|userpw=\"${{secrets.USERPW}}\"|g" build-image/openhabian.pi-raspios64.conf sed -i -e "s|ap_password:.*$|ap_password: ${{secrets.HOTSPOTPW}}|g" includes/comitup.conf cp build-image/template_rpi-imager-openhab.json rpi-imager-openhab.json sudo -E ./build.bash rpi