You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2022/11/21 10:08:30 UTC

[lucenenet] 01/02: .github/workflows/sonar.yml: Install .NET 7 SDK

This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 48e9734188561a931954cb328fcd75c312f53d12
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Mon Nov 21 17:04:53 2022 +0700

    .github/workflows/sonar.yml: Install .NET 7 SDK
---
 .github/workflows/sonar.yml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml
index 711134db7..bb6a29a99 100644
--- a/.github/workflows/sonar.yml
+++ b/.github/workflows/sonar.yml
@@ -29,6 +29,15 @@ jobs:
     name: Build and analyze
     runs-on: windows-latest
     steps:
+      - name: Disable .NET SDK Telemetry and Logo
+        run: |
+          echo "DOTNET_NOLOGO=1" | Out-File -FilePath  $env:GITHUB_ENV -Encoding utf8 -Append
+          echo "DOTNET_CLI_TELEMETRY_OPTOUT=1" | Out-File -FilePath  $env:GITHUB_ENV -Encoding utf8 -Append
+        shell: pwsh
+      - name: Setup .NET 7 SDK
+        uses: actions/setup-dotnet@v1
+        with:
+          dotnet-version: '7.0.x'
       - name: Set up JDK 11
         uses: actions/setup-java@v1
         with: