From 9d253ff1581bbcf1b89b2635b318fa7ce563c2a3 Mon Sep 17 00:00:00 2001 From: Damian Hickey <57436+damianh@users.noreply.github.com> Date: Tue, 12 Nov 2024 12:47:55 +0100 Subject: [PATCH] Trigger workflows on changes to nuget central package management. --- .github/workflow-gen/Program.cs | 7 ++++++- .github/workflows/access-token-management-ci.yml | 2 ++ .github/workflows/identity-model-ci.yml | 2 ++ .github/workflows/identity-model-oidc-client-ci.yml | 2 ++ .github/workflows/ignore-this-ci.yml | 2 ++ 5 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflow-gen/Program.cs b/.github/workflow-gen/Program.cs index b1408e96..4694d627 100644 --- a/.github/workflow-gen/Program.cs +++ b/.github/workflow-gen/Program.cs @@ -36,7 +36,12 @@ void GenerateCiWorkflow(Component component) { var workflow = new Workflow($"{component.Name}/ci"); - var paths = new[] { $".github/workflows/{component.Name}-**", $"{component.Name}/**" }; + var paths = new[] + { + $".github/workflows/{component.Name}-**", + $"{component.Name}/**", + "Directory.Packages.props" + }; workflow.On .WorkflowDispatch(); diff --git a/.github/workflows/access-token-management-ci.yml b/.github/workflows/access-token-management-ci.yml index 3aed2e59..5de6f5ce 100644 --- a/.github/workflows/access-token-management-ci.yml +++ b/.github/workflows/access-token-management-ci.yml @@ -7,10 +7,12 @@ on: paths: - .github/workflows/access-token-management-** - access-token-management/** + - Directory.Packages.props pull_request: paths: - .github/workflows/access-token-management-** - access-token-management/** + - Directory.Packages.props env: DOTNETT_NOLOGO: true DOTNET_CLI_TELEMETRY_OPTOUT: true diff --git a/.github/workflows/identity-model-ci.yml b/.github/workflows/identity-model-ci.yml index c0330abb..513ee9ab 100644 --- a/.github/workflows/identity-model-ci.yml +++ b/.github/workflows/identity-model-ci.yml @@ -7,10 +7,12 @@ on: paths: - .github/workflows/identity-model-** - identity-model/** + - Directory.Packages.props pull_request: paths: - .github/workflows/identity-model-** - identity-model/** + - Directory.Packages.props env: DOTNETT_NOLOGO: true DOTNET_CLI_TELEMETRY_OPTOUT: true diff --git a/.github/workflows/identity-model-oidc-client-ci.yml b/.github/workflows/identity-model-oidc-client-ci.yml index a90d132b..a6581fd1 100644 --- a/.github/workflows/identity-model-oidc-client-ci.yml +++ b/.github/workflows/identity-model-oidc-client-ci.yml @@ -7,10 +7,12 @@ on: paths: - .github/workflows/identity-model-oidc-client-** - identity-model-oidc-client/** + - Directory.Packages.props pull_request: paths: - .github/workflows/identity-model-oidc-client-** - identity-model-oidc-client/** + - Directory.Packages.props env: DOTNETT_NOLOGO: true DOTNET_CLI_TELEMETRY_OPTOUT: true diff --git a/.github/workflows/ignore-this-ci.yml b/.github/workflows/ignore-this-ci.yml index d89182dd..10bd8547 100644 --- a/.github/workflows/ignore-this-ci.yml +++ b/.github/workflows/ignore-this-ci.yml @@ -7,10 +7,12 @@ on: paths: - .github/workflows/ignore-this-** - ignore-this/** + - Directory.Packages.props pull_request: paths: - .github/workflows/ignore-this-** - ignore-this/** + - Directory.Packages.props env: DOTNETT_NOLOGO: true DOTNET_CLI_TELEMETRY_OPTOUT: true