L⚠️ ◾ Add GitHub Actions workflow for package updates#794
Merged
Conversation
Contributor
PR Metrics❌ Try to keep pull requests smaller than 400 lines of new product code by following the Single Responsibility Principle (SRP).
Metrics computed by PR Metrics. Add it to your Azure DevOps and GitHub PRs! |
This script updates NuGet package versions in the Directory.Packages.props file by querying the latest available versions and updating the Version attributes accordingly, while respecting the PreserveMajor attribute and pre-release version detection.
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new GitHub Actions workflow intended to run a PowerShell-based update script and automatically open a PR with the resulting changes.
Changes:
- Introduces
.github/workflows/package-update.ymlwith aworkflow_dispatch+pushtrigger. - Runs a PowerShell script, commits any changes to a new branch, pushes it, and opens a PR via
gh.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Changed the trigger for package updates to a scheduled cron job.
Contributor
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Initial plan * Gate PR creation on changes detection flag Co-authored-by: neilr81 <49037171+neilr81@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: neilr81 <49037171+neilr81@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
…in dotnet args (#833) * Initial plan * Fix Get-LatestPackageVersion to correctly use prerelease and configfile args Co-authored-by: neilr81 <49037171+neilr81@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: neilr81 <49037171+neilr81@users.noreply.github.com>
K-Cully
reviewed
Mar 3, 2026
K-Cully
reviewed
Mar 3, 2026
K-Cully
reviewed
Mar 3, 2026
K-Cully
reviewed
Mar 3, 2026
K-Cully
reviewed
Mar 3, 2026
K-Cully
reviewed
Mar 3, 2026
Introduce an optional NugetConfigPath parameter to Update-NuGetPackageVersions.ps1 and Update-DotNetSdkVersions.ps1 so the scripts can use a configurable NuGet config file (default: NuGet.Config). Update verbose messages and warnings to reference the chosen config path and simplify config selection logic to prefer the provided config name. Update the package-update GitHub Actions workflow to pass NuGet-GitHub.Config to both scripts and switch actions/setup-dotnet to use the repository global.json (global-json-file) instead of a hardcoded dotnet-version.
K-Cully
approved these changes
Mar 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new automated workflow for keeping NuGet package versions up to date. It adds a PowerShell script to scan and update package versions in the
Directory.Packages.propsfile and a GitHub Actions workflow to run this script weekly and on pull requests to themainbranch. The workflow commits any changes and opens a pull request automatically if updates are found.Automation for NuGet package updates:
.github/scripts/Update-NuGetPackageVersions.ps1, a PowerShell script that:Directory.Packages.propsforPackageVersionentries inItemGroupslabeledAutoUpdatedotnet package searchPreserveMajorattribute and pre-release versionsGitHub Actions workflow for scheduled and PR-based updates:
.github/workflows/package-update.ymlto: