From de3f0b54bb621caa313a86fac95db4c4709a97a7 Mon Sep 17 00:00:00 2001 From: John Ahlroos Date: Sat, 2 May 2026 12:33:45 +0200 Subject: [PATCH] Require tests pass before publishing new version --- .gitea/workflows/build.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index caa548f..0ddb7c1 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,8 +1,10 @@ name: Build & Release on: - push: - tags: - - '[0-9]+.[0-9]+.[0-9]+' + workflow_run: + workflows: [ "Run Tests" ] + branches: [ '[0-9]+.[0-9]+.[0-9]+' ] + types: + - completed env: ENDPOINT: services-3 @@ -15,6 +17,7 @@ env: jobs: build-docker-image: + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: node20 container: image: catthehacker/ubuntu:act-24.04