Skip to content

Update Dependencies

Update Dependencies #4

name: "Update Dependencies"
on:
workflow_dispatch:
schedule:
- cron: "0 16 * * 1" # Mondays at 8am PST
permissions:
contents: write
pull-requests: write
jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup .NET 9
uses: actions/setup-dotnet@b2ace4b12f4cec1b96b6361ff2694ba9e931ceb4 # v3.3.1
with:
dotnet-version: "9.0.x"
- name: Restore solution
run: ./build.sh -restore
- name: Rewrite nuget.config
run: dotnet new nugetconfig --force
- name: Install dotnet-outdated
run: dotnet tool install --global dotnet-outdated-tool
- name: Update packages
run: dotnet outdated --no-restore -u ./Aspire.sln
- name: Revert all changes except Directory.Packages.props
run: |
git add Directory.Packages.props
rm nuget.config
git checkout -- .
- name: Create Pull Request
uses: dotnet/actions-create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-dependencies
commit-message: "[Automated] Updating package dependencies"
title: "[Automated] Update dependencies"
body: "Auto-generated update to the package dependencies. In order for this PR to be green, it will require all of the new dependencies to be [mirrored to our AzDO NuGet feeds](https://github.com/dotnet/arcade/blob/main/Documentation/MirroringPackages.md). Any updates made outside of the first itemgroup in Directory.Packages.props should be reverted as those are packages that get updated through arcade's dependency flow."