Skip to content

Commit b3ed7aa

Browse files
Optimize workflow triggers to prevent unnecessary runs
- Run on pushes to feature branches (exclude main/dev) - Run on PRs targeting main or dev branches only - Prevents redundant runs on protected target branches
1 parent 2e7bcdf commit b3ed7aa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/validate-branch-history.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ on:
44
push:
55
branches:
66
- '**'
7+
- '!main'
8+
- '!dev'
79
pull_request:
10+
branches:
11+
- main
12+
- dev
813
types: [opened, synchronize, reopened]
914

1015
env:

0 commit comments

Comments
 (0)