From cd4032cd6fd09ec145d54b2c09828c6ef6065714 Mon Sep 17 00:00:00 2001 From: SebClem Date: Mon, 26 Aug 2024 16:22:07 +0200 Subject: [PATCH] Add missing image propertie --- .github/workflows/build_addon.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_addon.yml b/.github/workflows/build_addon.yml index 5a91167..6d6ccbf 100644 --- a/.github/workflows/build_addon.yml +++ b/.github/workflows/build_addon.yml @@ -120,6 +120,7 @@ jobs: images: | ${{env.REPOSITORY}}/${{env.IMAGE}}/${{matrix.arch}} tags: | + type=ref,event=branch type=ref,event=branch,suffix=.${{ github.run_number }} type=ref,event=pr type=semver,pattern={{version}} @@ -159,8 +160,8 @@ jobs: context: ./${{env.TARGET}}/ platforms: ${{ matrix.arch_value }} - publish-main: - name: Publish main + update_ha_repository: + name: Update HA addon repository runs-on: ubuntu-latest needs: - build-dockers @@ -201,6 +202,14 @@ jobs: propertyPath: 'version' value: ${{ steps.branch-names.outputs.current_branch }}.${{ github.run_number}} commitChange: false + + - name: Add image propertie + uses: fjogeleit/yaml-update-action@main + with: + valueFile: 'repository/nextcloud_backup/config.yml' + propertyPath: 'image' + value: "ghcr.io/sebclem/hassio-nextcloud-backup/{arch}" + commitChange: false - name: Create pull request uses: peter-evans/create-pull-request@v6