From 1c2673ac4d90f5fce13eb433686dd3e52ae42cd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ga=C5=82da?= Date: Fri, 10 Jan 2025 12:39:54 +0100 Subject: [PATCH] actions: Limit Toolchain Sync execution MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Action should be run only on branches which are targets of PRs. Signed-off-by: Jan Gałda --- .github/workflows/enforce-toolchain-synchronization.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/enforce-toolchain-synchronization.yml b/.github/workflows/enforce-toolchain-synchronization.yml index 3ab5e793085e..b06e954a1ba2 100644 --- a/.github/workflows/enforce-toolchain-synchronization.yml +++ b/.github/workflows/enforce-toolchain-synchronization.yml @@ -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