Skip to content

Commit

Permalink
fix(cicd): don't failed external contributors pr for sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Sep 29, 2023
1 parent f4e746d commit df65498
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@ on:

jobs:
check:
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
name: Check & Publish
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-python@v4
with:
python-version: '3.x'
Expand Down Expand Up @@ -101,6 +106,7 @@ jobs:
./gradlew check jacoco javadoc --no-daemon --priority=normal
- name: Analyze with Sonar
if: ${{ env.SONAR_TOKEN != 0 }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down

0 comments on commit df65498

Please sign in to comment.