diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cf11059..15ab465 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -111,7 +111,7 @@ jobs: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} shell: bash run: | - ./.sonar/scanner/dotnet-sonarscanner begin /k:"Informatievlaanderen_event-handling" /o:"informatievlaanderen" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" + ./.sonar/scanner/dotnet-sonarscanner begin /k:"Informatievlaanderen_event-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 @@ -125,6 +125,12 @@ 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: @@ -132,13 +138,7 @@ jobs: 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'