fix: bump SourceLink to 10.0.200 in Version.props #138
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Version Pin Check | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Verify pinned package versions | |
| shell: pwsh | |
| run: | | |
| # Inline version check (workaround for $PSScriptRoot bug in composite action) | |
| $globalJson = Get-Content 'global.json' -Raw | ConvertFrom-Json | |
| $sdks = $globalJson.'msbuild-sdks'.PSObject.Properties | |
| $errors = @() | |
| foreach ($sdk in $sdks) { | |
| $name = $sdk.Name | |
| $version = $sdk.Value | |
| # Check if version is published on NuGet | |
| $url = "https://api.nuget.org/v3-flatcontainer/$($name.ToLower())/index.json" | |
| try { | |
| $response = Invoke-RestMethod -Uri $url -ErrorAction Stop | |
| $latest = $response.versions | Select-Object -Last 1 | |
| if ($version -ne $latest) { | |
| Write-Host "::warning::$name pinned to $version, latest is $latest" | |
| } else { | |
| Write-Host "✓ $name $version is latest" | |
| } | |
| } catch { | |
| Write-Host "::warning::Could not verify $name - package not found or API error" | |
| } | |
| } | |
| if ($errors.Count -gt 0) { | |
| throw "Version pin check failed: $($errors -join '; ')" | |
| } |