Skip to content

Commit b3f0557

Browse files
committed
github: eliminate duplicate CI runs for branch pushes
This prevents wasteful duplicate CI execution that occurred when pushing to a branch and creating a PR from it. Now only main branch pushes and PRs to main trigger CI, with ci-testing/* branches available for direct push-based workflow testing while blocking PRs from those branches. Generated-by: Claude AI Signed-off-by: Daniel Gomez <[email protected]>
1 parent dcf24a9 commit b3f0557

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/kdevops.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ on:
77
- cron: '0 14 * * *' # Daily at 2 PM UTC
88
push:
99
branches:
10-
- '**'
10+
- main
11+
- 'ci-testing/**'
1112
pull_request:
1213
branches:
13-
- '**'
14+
- main
15+
branches-ignore:
16+
- 'ci-testing/**'
1417
workflow_dispatch:
1518
inputs:
1619
ci_workflow:

0 commit comments

Comments
 (0)