Skip to content

Commit 8b6780f

Browse files
committed
Fix a bug in the logic to skip building pull requests from the same repository
1 parent 9ebcb1f commit 8b6780f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: [push, pull_request]
55
jobs:
66
build:
77
# Skip building pull requests from the same repository
8-
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != '${{ github.repository }}'
8+
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) }}
99
runs-on: ${{ matrix.os }}
1010
strategy:
1111
fail-fast: false

0 commit comments

Comments
 (0)