elsa-core/build/Build.CI.GitHubActions.cs
Sipke Schoorstra f37b3c424b 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.
2024-02-21 11:26:09 +01:00

16 lines
658 B
C#

using Nuke.Common.CI.GitHubActions;
using Nuke.Components;
[GitHubActions(
"pr",
GitHubActionsImage.UbuntuLatest,
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)],
CacheKeyFiles = []
)
]
public partial class Build;