Skip to content

Commit d68f81c

Browse files
use default shell to run commands
1 parent d87438a commit d68f81c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/sonar-cloud-analysis.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,14 @@ jobs:
3535

3636
- name: Install SonarCloud scanner
3737
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
38-
shell: pwsh
39-
run: |
40-
New-Item -Path .\.sonar\scanner -ItemType Directory
41-
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
38+
run: dotnet tool update dotnet-sonarscanner --tool-path ./.sonar/scanner
4239

4340
- name: Build and analyze
4441
env:
4542
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
4643
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
47-
shell: pwsh
4844
run: |
49-
.\.sonar\scanner\dotnet-sonarscanner begin /k:"notion-dotnet_notion-sdk-net" /o:"notion-dotnet" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
45+
./.sonar/scanner/dotnet-sonarscanner begin /k:"notion-dotnet_notion-sdk-net" /o:"notion-dotnet" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
5046
dotnet restore
5147
dotnet build --no-restore
52-
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
48+
./.sonar/scanner/dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"

0 commit comments

Comments
 (0)