Consolidate .NET SDK versions to 10.0.x across all GitHub workflows (… #10352
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: CheckDotnet | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release/* | |
| pull_request: | |
| branches: | |
| - main | |
| - release/* | |
| permissions: read-all | |
| jobs: | |
| validate: | |
| permissions: | |
| contents: read # for actions/checkout to fetch code | |
| name: Validate | |
| runs-on: windows-latest | |
| steps: | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| - name: Prepare Machine | |
| run: scripts/prepare-machine.ps1 | |
| shell: pwsh | |
| - name: Run DotNet Update | |
| run: scripts/generate-dotnet.ps1 | |
| shell: pwsh | |
| - name: Check for Changes | |
| run: | | |
| git add . | |
| git --no-pager diff --exit-code HEAD |