From 9542caaa66ae7f580ed7a1ac4155eb21c73e2b98 Mon Sep 17 00:00:00 2001 From: Jonathan Giannuzzi Date: Mon, 14 Aug 2023 10:58:03 +0100 Subject: [PATCH] Skip `build-nuget` CI job when PR originates from a local branch --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15f1482..b982aa1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,7 @@ jobs: # Build the nuget package and upload it as an artifact. build-nuget: + if: github.event_name == 'push' || github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id name: Build NuGet package runs-on: ubuntu-latest steps: