From 789349930580817f42c7bf53448c3f88a2c8e1aa Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Mon, 20 May 2024 17:48:28 +0200 Subject: [PATCH] fix: :construction_worker: use default branch for building image --- .gitea/workflows/divent.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/divent.yml b/.gitea/workflows/divent.yml index f856d62..e02eb9f 100644 --- a/.gitea/workflows/divent.yml +++ b/.gitea/workflows/divent.yml @@ -37,7 +37,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - uses: docker/build-push-action@v5 with: - push: ${{ gitea.ref_name == 'master' || gitea.ref_type == 'tag' }} + push: ${{ gitea.ref_name == gitea.event.repository.default_branch || gitea.ref_type == 'tag' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}