From f1a0894ef5e254a00b563706ec69541426458f52 Mon Sep 17 00:00:00 2001 From: Christoph Wille Date: Fri, 15 Jul 2022 17:26:49 +0200 Subject: [PATCH] Install specific version of dotnet-format from AzDO feed (#2747) --- .github/workflows/build-ilspy.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-ilspy.yml b/.github/workflows/build-ilspy.yml index 22bce4606..e6a91feee 100644 --- a/.github/workflows/build-ilspy.yml +++ b/.github/workflows/build-ilspy.yml @@ -20,8 +20,7 @@ jobs: steps: - run: mkdir -p $env:StagingDirectory - - name: Force git to use crlf, otherwise dotnet-format --check fails - run: git config --global core.autocrlf true + - uses: actions/checkout@v3 with: submodules: true @@ -30,6 +29,9 @@ jobs: - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.1 + - name: Install dotnet-format + run: dotnet tool install -g dotnet-format --version "6.2.315104" --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json + - name: Get Version id: version shell: pwsh @@ -64,7 +66,7 @@ jobs: paths: "test-results/${{ matrix.configuration }}.xml" - name: Format check - run: dotnet format whitespace --verify-no-changes --verbosity detailed ILSpy.sln + run: dotnet-format whitespace --verify-no-changes --verbosity detailed ILSpy.sln - name: Verify package contents if: matrix.configuration == 'debug'