Skip to content

Conversation

Copy link

Copilot AI commented Nov 17, 2025

Modified build validation to only run jobs when files in their respective folders change, reducing unnecessary CI execution.

Changes

  • Added changes job using dorny/paths-filter@v3 to detect modified folders
  • Added conditional execution to all 10 build jobs based on path filters:
    build-dotnet-samples:
      needs: changes
      if: ${{ needs.changes.outputs.dotnet == 'true' }}
  • Set explicit permissions: contents: read following security best practices

Path Mappings

Each build job now triggers only when its folder changes:

  • .NET/**build-dotnet-samples
  • Frontend Web with Blazor/**build-blazor-samples
  • Backend Web with Web APIs/**build-webapi-samples
  • Package Management with NuGet/**build-nuget-samples
  • Visual Studio/**build-visualstudio-samples
  • Containers/**build-container-samples
  • Artificial Intelligence and Machine Learning/**build-ai-ml-samples
  • IoT/**build-iot-samples
  • Blazor Hybrid/**build-blazor-hybrid-samples
  • .NET MAUI/** + Blazor Hybrid/**build-maui-samples

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI self-assigned this Nov 17, 2025
Copilot AI and others added 2 commits November 17, 2025 22:03
Co-authored-by: jamesmontemagno <1676321+jamesmontemagno@users.noreply.github.com>
Co-authored-by: jamesmontemagno <1676321+jamesmontemagno@users.noreply.github.com>
Copilot AI changed the title [WIP] Update build validation for .NET 10 migration Add conditional execution to build validation workflow Nov 17, 2025
@jamesmontemagno jamesmontemagno marked this pull request as ready for review November 17, 2025 22:11
@jamesmontemagno jamesmontemagno merged commit 89c2335 into dotnet10 Nov 17, 2025
1 check passed
@jamesmontemagno jamesmontemagno deleted the copilot/sub-pr-36 branch November 17, 2025 22:11
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