Skip to content

Commit 1c2673a

Browse files
committed
actions: Limit Toolchain Sync execution
Action should be run only on branches which are targets of PRs. Signed-off-by: Jan Gałda <[email protected]>
1 parent f9e9dd4 commit 1c2673a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/enforce-toolchain-synchronization.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ name: Enforce rebasing Pull Requests if Toolchain was modified on target branch
1515

1616
on:
1717
push:
18-
branches:
19-
- '**' # Triggers on pushes to any branch
18+
branches: # Trigger on push to main and release branches
19+
- main
20+
- 'v*-branch'
2021
jobs:
2122
check-prs:
2223
if: ${{ github.repository_owner == 'nrfconnect' && !github.event.created }} # Skip for new branches or forks

0 commit comments

Comments
 (0)