From 9f70add064009042e0c9503fbfce4832f63aa8eb Mon Sep 17 00:00:00 2001 From: Martin Costello Date: Wed, 18 Dec 2024 11:55:05 +0000 Subject: [PATCH] Allow roll-forward for dotnet-validate Allowing `dotnet-validate` to roll-forward to a newer .NET runtime than .NET 6 so we don't need to install the .NET 6 SDK. --- .github/workflows/build.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ddaf190..384729e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -126,15 +126,10 @@ jobs: with: dotnet-version: ${{ needs.build.outputs.dotnet-sdk-version }} - - name: Setup .NET 6 SDK - uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 # v4.1.0 - with: - dotnet-version: '6.0.x' - - name: Validate NuGet packages shell: pwsh run: | - dotnet tool install --global dotnet-validate --version 0.0.1-preview.304 + dotnet tool install --global dotnet-validate --version 0.0.1-preview.304 --allow-roll-forward $packages = Get-ChildItem -Filter "*.nupkg" | ForEach-Object { $_.FullName } $invalidPackages = 0 foreach ($package in $packages) {