From d35ed19360a97cac848837df9c98a006e0fd7311 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Wed, 15 May 2024 20:50:04 +0200 Subject: [PATCH] test: :alembic: test if default_branch hook exists on gitea --- .gitea/workflows/mods.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/mods.yml b/.gitea/workflows/mods.yml index 7494284..bd86dfd 100644 --- a/.gitea/workflows/mods.yml +++ b/.gitea/workflows/mods.yml @@ -15,7 +15,7 @@ jobs: - uses: docker/build-push-action@v5 with: context: skip-chown - push: ${{ gitea.ref_name == 'master' || gitea.ref_type == 'tag' }} + push: ${{ gitea.ref_name == gitea.event.repository.default_branch || gitea.ref_type == 'tag' }} tags: xefir/mods:skip-chown wireguard-ipv6: @@ -31,5 +31,5 @@ jobs: - uses: docker/build-push-action@v5 with: context: wireguard-ipv6 - push: ${{ gitea.ref_name == 'master' || gitea.ref_type == 'tag' }} + push: ${{ gitea.ref_name == gitea.event.repository.default_branch || gitea.ref_type == 'tag' }} tags: xefir/mods:wireguard-ipv6