Skip to content

Commit 97af785

Browse files
xgopilot[bot]xgopilotluoliwoshang
authored
ci: exclude bot branches from push event triggers (#605)
Updated GitHub Actions workflows to prevent bot PRs (dependabot and xgopilot) from triggering both push and pull_request events. This avoids duplicate workflow runs. Changes: - go.yml: Added branch exclusions for dependabot/** and xgopilot/** - gentest.yml: Added branch exclusions for dependabot/** and xgopilot/** - end2end.yml: Added branch exclusions for dependabot/** and xgopilot/** Fixes #604 Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: xgopilot <noreply@goplus.org> Co-authored-by: luoliwoshang <51194195+luoliwoshang@users.noreply.github.com>
1 parent 7b27f50 commit 97af785

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/end2end.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ name: Test Result End2End
22

33
on:
44
push:
5-
branches: [ "**" ]
5+
branches:
6+
- "**"
7+
- "!dependabot/**"
8+
- "!xgopilot/**"
69
pull_request:
710
branches: [ "**" ]
811

.github/workflows/gentest.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ name: Test Demo With Generated Pkgs
22

33
on:
44
push:
5-
branches: [ "**" ]
5+
branches:
6+
- "**"
7+
- "!dependabot/**"
8+
- "!xgopilot/**"
69
pull_request:
710
branches: [ "**" ]
811

.github/workflows/go.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ name: Go
55

66
on:
77
push:
8-
branches: [ "**" ]
8+
branches:
9+
- "**"
10+
- "!dependabot/**"
11+
- "!xgopilot/**"
912
pull_request:
1013
branches: [ "**" ]
1114

0 commit comments

Comments
 (0)