diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3a1e0ed..aa468ad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,7 +5,7 @@ on: [push, pull_request] jobs: build: # Skip building pull requests from the same repository - if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != '${{ github.repository }}' + if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) }} runs-on: ${{ matrix.os }} strategy: fail-fast: false