From 8d05c5d2df3c1970f46e78b4f63a3826dccd5a04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20P=C3=B6schl?= Date: Mon, 28 Oct 2024 06:16:33 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9C=A8=20Add=20package=20updater=20actio?= =?UTF-8?q?n=20for=20Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/addon-update-packages.yaml | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/addon-update-packages.yaml diff --git a/.github/workflows/addon-update-packages.yaml b/.github/workflows/addon-update-packages.yaml new file mode 100644 index 0000000..c63e3e7 --- /dev/null +++ b/.github/workflows/addon-update-packages.yaml @@ -0,0 +1,34 @@ +name: Run Package updates + +# yamllint disable-line rule:truthy +on: + schedule: + - cron: "0 0 * * FRI" + workflow_dispatch: + +jobs: + check-for-updates: + name: Check for updates + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: ↩ī¸ Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: 🔧 Set git bot user + shell: bash + run: | + git config user.name github-actions + git config user.email github-actions@github.com + + - name: 🚀 Run Updater + uses: Poeschl/container-package-updater@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + containerFile: syncthing/Dockerfile + osVersion: 3.20 + architectures: "x86_64, aarch64, armhf, armv7, x86" From 81e4706a6d2779a9f301e07f7e7fffb1b8b5334a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20P=C3=B6schl?= Date: Tue, 29 Oct 2024 20:35:22 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20=20Move=20update=20log?= =?UTF-8?q?ic=20to=20workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/addon-update-packages.yaml | 24 ++------------------ 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/.github/workflows/addon-update-packages.yaml b/.github/workflows/addon-update-packages.yaml index c63e3e7..c6d05fa 100644 --- a/.github/workflows/addon-update-packages.yaml +++ b/.github/workflows/addon-update-packages.yaml @@ -7,28 +7,8 @@ on: workflow_dispatch: jobs: - check-for-updates: - name: Check for updates - runs-on: ubuntu-latest + workflows: + uses: Poeschl-HomeAssistant-Addons/workflows/.github/workflows/addon-update-packages.yaml@add-package-update-action permissions: contents: write pull-requests: write - steps: - - name: ↩ī¸ Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: 🔧 Set git bot user - shell: bash - run: | - git config user.name github-actions - git config user.email github-actions@github.com - - - name: 🚀 Run Updater - uses: Poeschl/container-package-updater@v3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - containerFile: syncthing/Dockerfile - osVersion: 3.20 - architectures: "x86_64, aarch64, armhf, armv7, x86"