Skip to content

Commit 9abba20

Browse files
committed
actions: Do not trigger toolchain sync in forks
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 <[email protected]>
1 parent 6862306 commit 9abba20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
- '**' # Triggers on pushes to any branch
2020
jobs:
2121
check-prs:
22-
if: ${{ !github.event.created }} # Skip for new branches
22+
if: ${{ github.repository_owner == 'nrfconnect' && !github.event.created }} # Skip for new branches or forks
2323
runs-on: ubuntu-latest
2424

2525
steps:

0 commit comments

Comments
 (0)