Skip to content

Commit

Permalink
adas
Browse files Browse the repository at this point in the history
Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
  • Loading branch information
Coduz committed Jan 24, 2025
1 parent d08ce93 commit 987ad88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/sonarCloud-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,17 @@ jobs:
timeout-minutes: 45
steps:
- name: Checkout repository # Checks out a copy of the repository on the runner
if: ${{ env.SONAR_TOKEN_AVAILABLE == 'true' }}
uses: actions/checkout@v4

- name: Set up runner
if: ${{ env.SONAR_TOKEN_AVAILABLE == 'true' }}
uses: ./.github/actions/setUpRunner

- name: Set up Maven caches
if: ${{ env.SONAR_TOKEN_AVAILABLE == 'true' }}
uses: ./.github/actions/setUpMavenCaches
with:
kapua-artifact-cache-enabled: 'false'

- name: Cache SonarQube packages
if: ${{ env.SONAR_TOKEN_AVAILABLE == 'true' }}
uses: actions/cache@v4
with:
path: ~/.sonar/cache
Expand All @@ -45,3 +41,7 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -B compile -PsonarScan

- name: Skip Build and analyze
if: ${{ env.SONAR_TOKEN_AVAILABLE == 'false' }}
run: echo "Secret SONAR_TOKEN not available to this workflow run... Skipping analysis!"

0 comments on commit 987ad88

Please sign in to comment.