Skip to content

Commit

Permalink
actions: Limit Toolchain Sync execution
Browse files Browse the repository at this point in the history
Action should be run only on branches which are targets of PRs.

Signed-off-by: Jan Gałda <[email protected]>
  • Loading branch information
jangalda-nsc committed Jan 10, 2025
1 parent f9e9dd4 commit 1c2673a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/enforce-toolchain-synchronization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ name: Enforce rebasing Pull Requests if Toolchain was modified on target branch

on:
push:
branches:
- '**' # Triggers on pushes to any branch
branches: # Trigger on push to main and release branches
- main
- 'v*-branch'
jobs:
check-prs:
if: ${{ github.repository_owner == 'nrfconnect' && !github.event.created }} # Skip for new branches or forks
Expand Down

0 comments on commit 1c2673a

Please sign in to comment.