Skip to content

Run continuous CI on dev pushes and pull requests - #518

Merged
danielchalmers merged 1 commit into
devfrom
claude/ci-trigger-pull-requests
Jul 27, 2026
Merged

danielchalmers merged 1 commit into
devfrom
claude/ci-trigger-pull-requests

Conversation

@danielchalmers

@danielchalmers danielchalmers commented Jul 27, 2026 •

Copy link
Copy Markdown
Member

continuous.yml triggers on on: [push] with no pull_request trigger. A push event never fires for a pull request opened from a fork, so fork PRs reach review without ever being compiled or packed.

[push] also matches every branch and every tag. Recent run history shows continuous firing on tag 4.3.0 alongside release.yml — two concurrent runs building the same commit.

Note that mudblazor-ci.yml in this repo already uses the correct shape (push: branches: [dev] + pull_request:); continuous.yml was simply never updated to match.

One of three matching PRs closing the same gap across the org — see MudBlazor/ThemeManager#47 and MudBlazor/MudBlazor.Icons#42.

Change

on:
  push:
    branches:
      - dev
  pull_request:
    branches:
      - dev

Because the workflow is generated from the NUKE [GitHubActions] attribute, build/Build.cs is updated in the same commit so a future regeneration doesn't silently revert the trigger. NUKE rejects mixing shorthand On with the expanded On* properties, so both triggers are branch-scoped via OnPushBranches/OnPullRequestBranches.

release.yml, codeql.yml, mudblazor-ci.yml, and mudblazor-auto-merge.yml are untouched.

The `continuous` workflow triggered on `push` only, which never fires for
pull requests opened from forks — so fork PRs were never compiled or packed
before review.

Scope the push trigger to `dev` and add a `pull_request` trigger, matching
`mudblazor-ci.yml` in this repo and the CI workflows in MudBlazor/MudBlazor
and MudBlazor/TryMudBlazor. This also stops `continuous` from running on
every internal branch push and on tag pushes, where it duplicated the build
already performed 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.
@danielchalmers
danielchalmers merged commit 890ae58 into dev Jul 27, 2026
7 checks passed
@ScarletKuro
ScarletKuro deleted the claude/ci-trigger-pull-requests branch October 11, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant