From 7e77aa07f9f5a9f2e21b481e032b56f2857e6343 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 25 Aug 2023 15:04:46 +0200 Subject: [PATCH] Create addons_updated --- .github/workflows/addons_updated | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/addons_updated diff --git a/.github/workflows/addons_updated b/.github/workflows/addons_updated new file mode 100644 index 000000000..c3cdc5f9a --- /dev/null +++ b/.github/workflows/addons_updated @@ -0,0 +1,36 @@ +# yamllint disable rule:line-length +--- +name: Weekly addons update +on: + workflow_call: + workflow_dispatch: + +jobs: + stats_graphs: + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Install bashio + run: | + # Install bashio + if grep -q -rnw "$files/" -e 'bashio' && [ ! -f "/usr/bin/bashio" ]; then + [ "$VERBOSE" = true ] && echo "install bashio" + BASHIO_VERSION="0.14.3" + mkdir -p /tmp/bashio + curl -f -L -s -S "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" | tar -xzf - --strip 1 -C /tmp/bashio + mv /tmp/bashio/lib /usr/lib/bashio + ln -s /usr/lib/bashio/bashio /usr/bin/bashio + rm -rf /tmp/bashio + fi + - name: Run script + run: | + mkdir -p /data + echo "{" >> /data/config.json + echo " repository=\"alexbelgium/hassio-addons\"," >> /data/config.json + echo " gituser=\"alexbelgium/hassio-addons\"," >> /data/config.json + echo " gitapi=\"alexbelgium/hassio-addons\"," >> /data/config.json + echo " gitmail=\"alexbelgium/hassio-addons\"," >> /data/config.json + echo " verbose=false" >> /data/config.json + echo "}" >> /data/config.json + ./addons_updater/rootfs/etc/cont-init.d/99-run.sh