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:
parent
662a076726
commit
f37b3c424b
1
.github/workflows/packages.yml
vendored
1
.github/workflows/packages.yml
vendored
|
|
@ -5,6 +5,7 @@ on:
|
|||
branches:
|
||||
- 'main'
|
||||
- 'feature/*'
|
||||
- 'enhancement/*'
|
||||
- 'patch/*'
|
||||
- 'fix/*'
|
||||
release:
|
||||
|
|
|
|||
|
|
@ -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)],
|
||||
|
|
|
|||
Loading…
Reference in a new issue