Skip to content

Commit 9f70add

Browse files
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.
1 parent fef0827 commit 9f70add

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,10 @@ jobs:
126126
with:
127127
dotnet-version: ${{ needs.build.outputs.dotnet-sdk-version }}
128128

129-
- name: Setup .NET 6 SDK
130-
uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 # v4.1.0
131-
with:
132-
dotnet-version: '6.0.x'
133-
134129
- name: Validate NuGet packages
135130
shell: pwsh
136131
run: |
137-
dotnet tool install --global dotnet-validate --version 0.0.1-preview.304
132+
dotnet tool install --global dotnet-validate --version 0.0.1-preview.304 --allow-roll-forward
138133
$packages = Get-ChildItem -Filter "*.nupkg" | ForEach-Object { $_.FullName }
139134
$invalidPackages = 0
140135
foreach ($package in $packages) {

0 commit comments

Comments
 (0)