From c368a1eb8ba5e9e1bed98e46773f2445366b338a Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Sun, 26 Jul 2026 21:48:39 -0500 Subject: [PATCH] Run continuous CI on main pushes and pull requests The `continuous` workflow triggered on `push` only, which never fires for pull requests opened from forks. Five of the last fifteen PRs to this repo came from forks, so none of them were compiled or format-checked before review. Scope the push trigger to `main` and add a `pull_request` trigger, matching what MudBlazor/MudBlazor and MudBlazor/TryMudBlazor already do. As a side effect this also stops `continuous` from running on every internal branch push and on tag pushes, where it duplicated work already done by `release`. The trigger is declared in the NUKE `[GitHubActions]` attribute, so `build/Build.cs` is updated alongside the generated YAML to keep the two in sync. --- .github/workflows/continuous.yml | 8 +++++++- build/Build.cs | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index 4bbdada..3451283 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -16,7 +16,13 @@ name: continuous -on: [push] +on: + push: + branches: + - main + pull_request: + branches: + - main jobs: ubuntu-latest: diff --git a/build/Build.cs b/build/Build.cs index 39c8473..1a228a1 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -19,7 +19,8 @@ "continuous", GitHubActionsImage.UbuntuLatest, FetchDepth = 0, - On = [GitHubActionsTrigger.Push], + OnPushBranches = ["main"], + OnPullRequestBranches = ["main"], PublishArtifacts = true, InvokedTargets = [nameof(Compile), nameof(Pack)])] [GitHubActions(