From 9abba2029b75e5b4f8990f7b55b28817ed01a0e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ga=C5=82da?= Date: Mon, 30 Dec 2024 11:52:27 +0100 Subject: [PATCH] actions: Do not trigger toolchain sync in forks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If actions are enabled in nrfconnect/sdk-nrf's fork, toolchain check should not be executed. It fails if developer force pushes a branch. Signed-off-by: Jan Gałda --- .github/workflows/enforce-toolchain-synchronization.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/enforce-toolchain-synchronization.yml b/.github/workflows/enforce-toolchain-synchronization.yml index 805acf551ae2..71f317bce442 100644 --- a/.github/workflows/enforce-toolchain-synchronization.yml +++ b/.github/workflows/enforce-toolchain-synchronization.yml @@ -19,7 +19,7 @@ on: - '**' # Triggers on pushes to any branch jobs: check-prs: - if: ${{ !github.event.created }} # Skip for new branches + if: ${{ github.repository_owner == 'nrfconnect' && !github.event.created }} # Skip for new branches or forks runs-on: ubuntu-latest steps: