Skip to content

Commit e9553cf

Browse files
Allow roll-forward for dotnet-validate
Fix package validation by allowing `dotnet-validate` to roll-forward to a newer .NET runtime than .NET 6.
1 parent 6587b47 commit e9553cf

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
@@ -123,15 +123,10 @@ jobs:
123123
with:
124124
dotnet-version: ${{ needs.build.outputs.dotnet-sdk-version }}
125125

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

0 commit comments

Comments
 (0)