File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "version" : 1 ,
3+ "isRoot" : true ,
4+ "tools" : {
5+ "dotnet-validate" : {
6+ "version" : " 0.0.1-preview.304" ,
7+ "commands" : [
8+ " dotnet-validate"
9+ ]
10+ }
11+ }
12+ }
Original file line number Diff line number Diff line change 2727
2828 outputs :
2929 dotnet-sdk-version : ${{ steps.setup-dotnet.outputs.dotnet-version }}
30+ dotnet-validate-version : ${{ steps.get-dotnet-tools-versions.outputs.dotnet-validate-version }}
3031
3132 permissions :
3233 attestations : write
@@ -100,6 +101,14 @@ jobs:
100101 path : ./artifacts/package/release
101102 if-no-files-found : error
102103
104+ - name : Get .NET tools versions
105+ id : get-dotnet-tools-versions
106+ shell : pwsh
107+ run : |
108+ $manifest = (Get-Content "./.config/dotnet-tools.json" | Out-String | ConvertFrom-Json)
109+ $dotnetValidateVersion = $manifest.tools.'dotnet-validate'.version
110+ "dotnet-validate-version=${dotnetValidateVersion}" >> $env:GITHUB_OUTPUT
111+
103112 validate-packages :
104113 needs : build
105114 runs-on : ubuntu-latest
@@ -117,8 +126,10 @@ jobs:
117126
118127 - name : Validate NuGet packages
119128 shell : pwsh
129+ env :
130+ DOTNET_VALIDATE_VERSION : ${{ needs.build.outputs.dotnet-validate-version }}
120131 run : |
121- dotnet tool install --global dotnet-validate --version 0.0.1-preview.304
132+ dotnet tool install --global dotnet-validate --version ${env:DOTNET_VALIDATE_VERSION}
122133 $packages = Get-ChildItem -Filter "*.nupkg" | ForEach-Object { $_.FullName }
123134 $invalidPackages = 0
124135 foreach ($package in $packages) {
You can’t perform that action at this time.
0 commit comments