Skip to content

Commit

Permalink
actions: Do not trigger toolchain sync in forks
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jangalda-nsc committed Dec 30, 2024
1 parent 6862306 commit 9abba20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/enforce-toolchain-synchronization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9abba20

Please sign in to comment.