From 8bc447c9a6a86b1b29aa47e6594b1cb7eb5a2bed Mon Sep 17 00:00:00 2001 From: Sandro Date: Sat, 24 Oct 2026 18:12:52 +0200 Subject: [PATCH] ci: completely ignore main branch so only tags and test branches trigger runners --- .gitea/workflows/build-and-publish.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build-and-publish.yaml b/.gitea/workflows/build-and-publish.yaml index 524295b..1c8cbfd 100644 --- a/.gitea/workflows/build-and-publish.yaml +++ b/.gitea/workflows/build-and-publish.yaml @@ -2,18 +2,16 @@ name: MindSift CI & Docker Release on: push: - branches: - - '**' + branches-ignore: + - main tags: - '*' - pull_request: - branches: - - main jobs: test: name: Lint, Build & Unit Tests runs-on: ubuntu-latest + if: github.ref != 'refs/heads/main' steps: - name: Checkout Code uses: actions/checkout@v4 @@ -45,8 +43,7 @@ jobs: name: Build & Push Docker Image needs: test runs-on: ubuntu-latest - # Auf 'main' werden nur Tests ausgeführt — gebaut & gepusht wird nur bei Tags oder Test-/RC-Branches - if: github.event_name == 'push' && github.ref != 'refs/heads/main' + if: github.ref != 'refs/heads/main' steps: - name: Checkout Code uses: actions/checkout@v4