From f37b3c424b898226f78555dd8c4cd2b5c1a98831 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Wed, 21 Feb 2024 11:26:09 +0100 Subject: [PATCH] Expand triggers and branches for GitHub Actions The GitHub Actions configuration has been updated to also trigger on Push events and Workflow Dispatch events. OnPushBranches and OnPullRequestBranches now also include branches prefixed with 'feature', 'patch', 'fix', and 'enhancement'. This is reflected in both the Build.CI.GitHubActions.cs file and the packages.yml GitHub workflow. --- .github/workflows/packages.yml | 1 + build/Build.CI.GitHubActions.cs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 485a9b73a..1e6a9c51e 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -5,6 +5,7 @@ on: branches: - 'main' - 'feature/*' + - 'enhancement/*' - 'patch/*' - 'fix/*' release: diff --git a/build/Build.CI.GitHubActions.cs b/build/Build.CI.GitHubActions.cs index 052ca483e..dc69dd705 100644 --- a/build/Build.CI.GitHubActions.cs +++ b/build/Build.CI.GitHubActions.cs @@ -4,7 +4,9 @@ using Nuke.Components; [GitHubActions( "pr", GitHubActionsImage.UbuntuLatest, - OnPullRequestBranches = ["main"], + On = [GitHubActionsTrigger.Push, GitHubActionsTrigger.PullRequest, GitHubActionsTrigger.WorkflowDispatch], + OnPushBranches = ["main", "feature/*", "patch/*", "fix/*", "enhancement/*"], + OnPullRequestBranches = ["main", "feature/*", "patch/*", "fix/*", "enhancement/*"], OnPullRequestIncludePaths = ["**/*"], PublishArtifacts = false, InvokedTargets = [nameof(ICompile.Compile), nameof(ITest.Test), nameof(IPack.Pack)],