From c426846db48744788e659c576a10a82e3f0bc17f 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 | 8 +++++--- .gitea/workflows/test.yaml | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index caa548f..36caeb6 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,8 +1,9 @@ name: Build & Release on: - push: - tags: - - '[0-9]+.[0-9]+.[0-9]+' + workflow_run: + workflows: [ "Run Tests" ] + types: + - completed env: ENDPOINT: services-3 @@ -15,6 +16,7 @@ env: jobs: build-docker-image: + if: ${{ github.event.workflow_run.conclusion == 'success' && startsWith(gitea.ref, 'refs/tags/') }} runs-on: node20 container: image: catthehacker/ubuntu:act-24.04 diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 61b90f4..984307a 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -1,6 +1,7 @@ name: Run Tests on: push: {} + workflow_dispatch: env: RUNNER_TOOL_CACHE: /toolcache jobs: