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