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.
This commit is contained in:
Sipke Schoorstra 2024-02-21 11:26:09 +01:00
parent 662a076726
commit f37b3c424b
2 changed files with 4 additions and 1 deletions

View file

@ -5,6 +5,7 @@ on:
branches:
- 'main'
- 'feature/*'
- 'enhancement/*'
- 'patch/*'
- 'fix/*'
release:

View file

@ -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)],