From 2c50bfea6c1564f3ffadd3ed79c5a94ef0179afa Mon Sep 17 00:00:00 2001 From: Anthony Shaw Date: Sat, 3 Aug 2024 10:27:54 +1000 Subject: [PATCH] only run nuget packaging on changes to src/** --- .github/workflows/dotnet-publish-ci.yml | 2 ++ .github/workflows/dotnet-publish-main.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/dotnet-publish-ci.yml b/.github/workflows/dotnet-publish-ci.yml index 171af646..5da509db 100644 --- a/.github/workflows/dotnet-publish-ci.yml +++ b/.github/workflows/dotnet-publish-ci.yml @@ -6,6 +6,8 @@ name: .NET Publish (GitHub Packages) on: pull_request: branches: ["main"] + paths: + - "src/**" env: DOTNET_VERSION: 8.0.x diff --git a/.github/workflows/dotnet-publish-main.yml b/.github/workflows/dotnet-publish-main.yml index 20f8472e..a71da4a7 100644 --- a/.github/workflows/dotnet-publish-main.yml +++ b/.github/workflows/dotnet-publish-main.yml @@ -6,6 +6,8 @@ name: .NET Publish (NuGet) on: push: branches: ["main"] + paths: + - "src/**" env: DOTNET_VERSION: 8.0.x