From 0dd75c2126a4994c85131d3f44dedf4dabb6344f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20Tr=C3=B6ger?= Date: Thu, 4 Sep 2025 10:23:37 +0200 Subject: [PATCH] Update build-deploy.yaml --- .gitea/workflows/build-deploy.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build-deploy.yaml b/.gitea/workflows/build-deploy.yaml index 0812aa6..af7ead3 100644 --- a/.gitea/workflows/build-deploy.yaml +++ b/.gitea/workflows/build-deploy.yaml @@ -1,19 +1,19 @@ name: Arbeitszeitmessung Deploy run-name: ${{ gitea.actor }} is building and deploying arbeitszeitmesssung on: - push: - branches: - - "main" - tags: - - "*" workflow_run: - workflows: [tests] + workflows: ["tests"] types: - completed jobs: build: name: Build Go Image and Upload + if: | + github.event.workflow_run.conclusion == 'success' && + github.event.workflow_run.event == 'push' && + startsWith(github.event.workflow_run.head_branch, 'main') && + startsWith(github.event.workflow_run.head_commit.ref, 'refs/tags/') runs-on: ubuntu-latest steps: - name: Checkout