Skip to content

Serialize .NET main workflow runs - #1984

Merged
aaronpowell merged 1 commit into
mainfrom
aaronpowell-main-workflow-concurrency
Sep 28, 2026
Merged

aaronpowell merged 1 commit into
mainfrom
aaronpowell-main-workflow-concurrency

Conversation

@aaronpowell

Copy link
Copy Markdown
Member

Closes: N/A (no relevant issue)

Serialize runs of the .NET main workflow by ref and cancel an in-progress run when a newer run for that ref starts. This prevents overlapping main-branch runs while ensuring the latest run proceeds.

PR Checklist

  • Created a feature/dev branch in your fork (vs. submitting directly from a commit on main)
  • Based off latest main branch of toolkit
  • PR doesn't include merge commits (always rebase on top of our main, if needed)
  • New integration
    • Docs are written
    • Added description of major feature to project description for NuGet package (4000 total character limit, so don't push entire description over that)
  • Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Contains NO breaking changes
  • Every new API (including internal ones) has full XML docs
  • Code follows all style conventions

Other information

  • No relevant issue exists; the repository template requires an issue link, so this PR is submitted without one.
  • Validation: parsed the modified workflow YAML; git diff --check passed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 28, 2026 01:00
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/CommunityToolkit/Aspire/main/eng/scripts/dogfood-pr.sh | bash -s -- 1984

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/CommunityToolkit/Aspire/main/eng/scripts/dogfood-pr.ps1) } 1984"

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved review issues remain.

Review effort: Lite
Findings: None

What changed in this PR

Adds GitHub Actions concurrency control to serialize .NET main workflow runs per ref and cancel older runs.

Changes:

  • Groups runs by workflow and Git ref.
  • Cancels in-progress runs when a newer run starts.
File Description
.github/​workflows/​dotnet-main.yml Adds workflow-level concurrency settings.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@aaronpowell
aaronpowell merged commit 69ae297 into main Sep 28, 2026
14 of 165 checks passed
@aaronpowell
aaronpowell deleted the aaronpowell-main-workflow-concurrency branch September 28, 2026 01:15
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.

2 participants