Skip to content

Commit 0fd097a

Browse files
committed
WIP #248 - Attempt to fix syntax
1 parent 917e184 commit 0fd097a

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

.github/workflows/dotnetCi.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
Tfm: net8.0
2121
DotnetVersion: 8.0.x
2222
SonarCloudSecretKey: ${{ secrets.SONARCLOUDKEY }}
23+
BranchName: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }}
24+
BranchParam: ${{ github.event_name == 'pull_request' && 'sonar.pullrequest.branch' || 'sonar.branch.name' }}
25+
PullRequestParam: ${{ github.event_name == 'pull_request' && format('/d:sonar.pullrequest.key={0}', github.event.number) || '' }}
2326

2427
steps:
2528
- name: Checkout
@@ -46,18 +49,6 @@ jobs:
4649
run: dotnet tool install --global dotnet-sonarscanner
4750
- name: Setup Coverlet console
4851
run: dotnet tool install --global coverlet.console
49-
- name: Setup SonarScanner for pull request processing
50-
if: ${{ github.event_name == 'pull_request' }}
51-
env:
52-
BranchName: ${{ github.base_ref }}
53-
BranchParam: sonar.pullrequest.branch
54-
PullRequestParam: /d:sonar.pullrequest.key=${{ github.event.number }}
55-
- name: Setup SonarScanner for normal branch processing
56-
if: ${{ github.event_name != 'pull_request' }}
57-
env:
58-
BranchName: ${{ github.ref_name }}
59-
BranchParam: sonar.branch.name
60-
PullRequestParam:
6152
- name: Setup Selenium Manager config
6253
run: |
6354
mkdir ~/.cache/selenium

0 commit comments

Comments
 (0)