From 47b21c6d7986ff06ad8dbbb0848753f72aeb316b Mon Sep 17 00:00:00 2001 From: David Cho-Lerat Date: Thu, 30 Nov 2023 16:15:10 +0100 Subject: [PATCH] SONAR-21021 GitHub Action Template for .NET: remove useless empty env line --- .../__tests__/__snapshots__/GithubActionTutorial-it.tsx.snap | 1 - .../js/components/tutorials/github-action/commands/DotNet.tsx | 1 - 2 files changed, 2 deletions(-) diff --git a/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/GithubActionTutorial-it.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/GithubActionTutorial-it.tsx.snap index 4c49554ebe5..fc3241f600e 100644 --- a/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/GithubActionTutorial-it.tsx.snap +++ b/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/GithubActionTutorial-it.tsx.snap @@ -43,7 +43,6 @@ jobs: New-Item -Path .\\.sonar\\scanner -ItemType Directory dotnet tool update dotnet-sonarscanner --tool-path .\\.sonar\\scanner - name: Build and analyze - env: shell: powershell run: | .\\.sonar\\scanner\\dotnet-sonarscanner begin /k:"my-project" /d:sonar.token="\${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="\${{ secrets.SONAR_HOST_URL }}" diff --git a/server/sonar-web/src/main/js/components/tutorials/github-action/commands/DotNet.tsx b/server/sonar-web/src/main/js/components/tutorials/github-action/commands/DotNet.tsx index c0820ba75a2..9b4e8fbc396 100644 --- a/server/sonar-web/src/main/js/components/tutorials/github-action/commands/DotNet.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/github-action/commands/DotNet.tsx @@ -55,7 +55,6 @@ function dotnetYamlSteps(projectKey: string) { New-Item -Path .\\.sonar\\scanner -ItemType Directory dotnet tool update dotnet-sonarscanner --tool-path .\\.sonar\\scanner - name: Build and analyze - env: shell: powershell run: | .\\.sonar\\scanner\\dotnet-sonarscanner begin /k:"${projectKey}" /d:sonar.token="\${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="\${{ secrets.SONAR_HOST_URL }}" -- 2.39.5