ci: completely ignore main branch so only tags and test branches trigger runners

This commit is contained in:
sandrodach committed 2026-10-24 18:12:52 +02:00
1 parent 93dd6beff6
commit 8bc447c9a6
1 file changed
+4 -7
+4 -7
View File
@@ -2,18 +2,16 @@ name: MindSift CI & Docker Release
on: on:
push: push:
branches: branches-ignore:
- '**' - main
tags: tags:
- '*' - '*'
pull_request:
branches:
- main
jobs: jobs:
test: test:
name: Lint, Build & Unit Tests name: Lint, Build & Unit Tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -45,8 +43,7 @@ jobs:
name: Build & Push Docker Image name: Build & Push Docker Image
needs: test needs: test
runs-on: ubuntu-latest runs-on: ubuntu-latest
# Auf 'main' werden nur Tests ausgeführt — gebaut & gepusht wird nur bei Tags oder Test-/RC-Branches if: github.ref != 'refs/heads/main'
if: github.event_name == 'push' && github.ref != 'refs/heads/main'
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v4 uses: actions/checkout@v4