Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ubuntu-latest-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:
pull_request:
branches:
- main
- 'release/v*'
paths:
- 'docs/**'
- '.assets/**'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ubuntu-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ on:
pull_request:
branches:
- main
- 'release/v*'
paths-ignore:
- 'docs/**'
- '.assets/**'
Expand Down
4 changes: 3 additions & 1 deletion build/Build.CI.GitHubActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
FetchDepth = 0,
Submodules = GitHubActionsSubmodules.Recursive,
CheckoutRef = "${{ github.head_ref }}",
OnPullRequestBranches = new[] { MainBranch },
// Trigger for PRs targeting main OR any release/vN branch — both are
// long-lived and protected; both require the ubuntu-latest status check.
OnPullRequestBranches = new[] { MainBranch, ReleaseBranchPattern },
OnPullRequestExcludePaths = new[] { "docs/**", ".assets/**", "**/*.md" },
InvokedTargets = new[] { nameof(ITest.Test), nameof(IPack.Pack) },
PublishArtifacts = false)]
Expand Down
7 changes: 7 additions & 0 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ partial class Build

const string MainBranch = "main";

// Glob matching the long-lived release-branch family (release/v11, release/v12, ...).
// Used by Build.CI.GitHubActions to extend PR-validation workflows to cover PRs
// targeting any release branch — branch protection on release/vN requires the
// ubuntu-latest status check, which only fires if the workflow's branches: list
// matches the PR's base ref. See milestone #13.
const string ReleaseBranchPattern = "release/v*";

// Trunk-based versioning. Nerdbank.GitVersioning computes the canonical version
// (major.minor from version.json + git-height as patch). ThisAssembly is generated by
// NB.GV at compile time; AssemblyInformationalVersion looks like "10.3.5+abc1234" so we
Expand Down
Loading