Skip to content

Commit

Permalink
fix: redirect sonar to /dev/null
Browse files Browse the repository at this point in the history
  • Loading branch information
lvermeulen authored Apr 27, 2022
1 parent f9d6a8a commit 5d35c53
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
shell: bash
run: |
./.sonar/scanner/dotnet-sonarscanner begin /k:"Informatievlaanderen_projection-handling" /o:"informatievlaanderen" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
./.sonar/scanner/dotnet-sonarscanner begin /k:"Informatievlaanderen_projection-handling" /o:"informatievlaanderen" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" > /dev/null 2>&1
- name: Run Semantic Release
shell: bash
Expand All @@ -125,20 +125,20 @@ jobs:
GIT_EMAIL: ${{ secrets.VBR_GIT_EMAIL }}
GIT_AUTHOR_EMAIL: ${{ secrets.VBR_GIT_EMAIL }}
GIT_COMMITTER_EMAIL: ${{ secrets.VBR_GIT_EMAIL }}

- name: Set Release Version
run: |
[ ! -f semver ] && echo none > semver
echo RELEASE_VERSION=$(cat semver) >> $GITHUB_ENV
shell: bash

- name: Sonar end Build & analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
shell: bash
run: |
./.sonar/scanner/dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
- name: Set Release Version
run: |
[ ! -f semver ] && echo none > semver
echo RELEASE_VERSION=$(cat semver) >> $GITHUB_ENV
shell: bash
./.sonar/scanner/dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}" > /dev/null 2>&1
- name: Publish to NuGet
if: env.RELEASE_VERSION != 'none'
Expand Down

0 comments on commit 5d35c53

Please sign in to comment.