Skip to content

fix(ci): trigger build when root-level NuGet/SDK config files change#2049

Merged
Belphemur merged 2 commits intodevfrom
copilot/fix-cicd-trigger-builds
Mar 31, 2026
Merged

fix(ci): trigger build when root-level NuGet/SDK config files change#2049
Belphemur merged 2 commits intodevfrom
copilot/fix-cicd-trigger-builds

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 31, 2026

Dependabot NuGet bump PRs (e.g. changes to Directory.Packages.props) never triggered the build because the sound-switch path filter only matched SoundSwitch*/**, missing all root-level build config files.

Changes

  • .github/workflows/dotnet.yml: extend the sound-switch paths filter to include root-level files that affect the build:
    • Directory.Packages.props — NuGet Central Package Management (where Dependabot bumps versions)
    • global.json — .NET SDK version pin
    • nuget.config — NuGet feed config
sound-switch:
  - 'SoundSwitch*/**'
  - 'Directory.Packages.props'
  - 'global.json'
  - 'nuget.config'

@Belphemur Belphemur marked this pull request as ready for review March 31, 2026 00:04
Copilot AI review requested due to automatic review settings March 31, 2026 00:04
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 31, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 03d4f8a3-7ae2-421d-864d-faad4b946f40

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch copilot/fix-cicd-trigger-builds

Comment @coderabbitai help to get the list of available commands and usage tips.

@Belphemur Belphemur merged commit d1d0752 into dev Mar 31, 2026
4 checks passed
@Belphemur Belphemur deleted the copilot/fix-cicd-trigger-builds branch March 31, 2026 00:05
Copilot AI restored the copilot/fix-cicd-trigger-builds branch March 31, 2026 00:05
Copilot AI changed the title [WIP] Fix CI/CD to trigger builds for pull requests fix(ci): trigger build when root-level NuGet/SDK config files change Mar 31, 2026
Copilot stopped work on behalf of Belphemur due to an error March 31, 2026 00:05
Copilot AI requested a review from Belphemur March 31, 2026 00:05
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the GitHub Actions path filtering so the .NET build workflow triggers for pull requests that modify repository-level .NET/NuGet configuration files (commonly touched by Dependabot), aligning CI behavior with how the .NET solution is actually impacted.

Changes:

  • Extend the sound-switch path filter to include Directory.Packages.props, global.json, and nuget.config.

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.

3 participants