Skip to content

Commit

Permalink
ad
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 7c620e8 commit 6f1df3e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/sonarCloud-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,16 @@ on:
- 'develop'

env:
SONAR_TOKEN_EXISTS: ${{ secrets.SONAR_TOKEN != "" }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

jobs:
build:
# if: ${{ $SONAR_TOKEN_EXISTS != 'true' }}
if: ${{ $SONAR_TOKEN != "" }}
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: test
run: |
echo "$SONAR_TOKEN_EXISTS"
echo "$env.SONAR_TOKEN_EXISTS"
echo "env.SONAR_TOKEN_EXISTS"
- name: Checkout repository # Checks out a copy of the repository on the runner
uses: actions/checkout@v4

Expand All @@ -42,7 +38,5 @@ jobs:

- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -B compile -PsonarScan

0 comments on commit 6f1df3e

Please sign in to comment.