ci: prevent duplicate workflow runs for xgopilot branches

Add !xgopilot/** exclusion pattern to all workflow trigger configurations,
matching the existing dependabot pattern. This ensures that xgopilot branches
only trigger CI checks on pull_request events, eliminating redundant push
event triggers.

Fixes #1340

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
luoliwoshang
2025-10-14 19:00:47 +08:00
parent 1ee4da9851
commit bf05779f2f
6 changed files with 9 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ on:
branches: branches:
- "**" - "**"
- "!dependabot/**" - "!dependabot/**"
- "!xgopilot/**"
pull_request: pull_request:
branches: ["**"] branches: ["**"]

View File

@@ -5,6 +5,7 @@ on:
branches: branches:
- "**" - "**"
- "!dependabot/**" - "!dependabot/**"
- "!xgopilot/**"
pull_request: pull_request:
branches: ["**"] branches: ["**"]

View File

@@ -8,6 +8,7 @@ on:
branches: branches:
- "**" - "**"
- "!dependabot/**" - "!dependabot/**"
- "!xgopilot/**"
pull_request: pull_request:
branches: ["**"] branches: ["**"]

View File

@@ -8,6 +8,7 @@ on:
branches: branches:
- "**" - "**"
- "!dependabot/**" - "!dependabot/**"
- "!xgopilot/**"
pull_request: pull_request:
branches: ["**"] branches: ["**"]

View File

@@ -2,7 +2,10 @@ name: Release Build
on: on:
push: push:
branches: ["**"] branches:
- "**"
- "!dependabot/**"
- "!xgopilot/**"
tags: ["*"] tags: ["*"]
pull_request: pull_request:
branches: ["**"] branches: ["**"]

View File

@@ -6,6 +6,7 @@ on:
branches: branches:
- "**" - "**"
- "!dependabot/**" - "!dependabot/**"
- "!xgopilot/**"
pull_request: pull_request:
branches: ["**"] branches: ["**"]