Skip to content

Commit 9c0f325

Browse files
committed
Prevent running twice for PRs from the same repo
1 parent 2813eec commit 9c0f325

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/cmake.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ env:
77

88
jobs:
99
build:
10-
if: github.repository_owner == 'raspberrypi'
10+
# Prevent running twice for PRs from same repo
11+
if: github.repository_owner == 'raspberrypi' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name)
1112
runs-on: [self-hosted, Linux, X64]
1213
strategy:
1314
fail-fast: false

0 commit comments

Comments
 (0)