Skip to content

Commit ed84fc0

Browse files
authored
Merge pull request #29 from build-cpp/fix-actions-pr
Fix a bug in the logic to skip building pull requests from the same repo
2 parents 9ebcb1f + 8b6780f commit ed84fc0

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)