CI: only run once for PRs with branches from original repo (#7075)

This commit is contained in:
Mihai Fufezan 2024-07-27 22:17:05 +03:00 committed by GitHub
parent 55ceca4cdd
commit 04b40ea2ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 1 deletions

View file

@ -9,7 +9,7 @@ jobs:
secrets: inherit
build:
if: always() && !cancelled() && !contains(needs.*.result, 'failure')
if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork) && !contains(needs.*.result, 'failure')
needs: update-inputs
uses: ./.github/workflows/nix-build.yml
secrets: inherit