Update repo only for main event

This commit is contained in:
SebClem 2024-08-27 18:41:18 +02:00
parent 8b1285780b
commit f0e2125173
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50

View File

@ -1,10 +1,11 @@
name: Build addon name: Build addon
on: on:
release:
types: [published]
push: push:
workflow_dispatch: branches:
- "*"
tags:
- "*"
env: env:
TARGET: nextcloud_backup TARGET: nextcloud_backup
@ -160,12 +161,12 @@ jobs:
context: ./${{env.TARGET}}/ context: ./${{env.TARGET}}/
platforms: ${{ matrix.arch_value }} platforms: ${{ matrix.arch_value }}
update_ha_repository: update_main_ha_repository:
name: Update HA addon repository name: Update HA addon repository
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: needs:
- build-dockers - build-dockers
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }} if: ${{ github.ref == 'refs/heads/main' }}
steps: steps:
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v4 uses: actions/checkout@v4