Skip to content

Commit

Permalink
Disable SonarCloud analysis on fork pull request
Browse files Browse the repository at this point in the history
Because the environment variables are not passed to the workflow
created by a pull request from the fork:
https://github.com/orgs/community/discussions/44322

Signed-off-by: Saeed Rezaee <[email protected]>
Signed-off-by: Diego Rondini <[email protected]>
  • Loading branch information
SaeedRe authored and Diego Rondini committed Jan 23, 2024
1 parent 890e401 commit 1c74f35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pipeline-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ jobs:
run: |
if [[ "$RUNNER_OS" == "Windows" || ( "$RUNNER_OS" == "macOS" && ${{ github.event_name }} != 'pull_request' ) ]]; then
./gradlew build -x test
elif [[ ${{ github.event_name }} == 'pull_request' && ${{ github.event.pull_request.head.repo.full_name != 'eclipse/hara-ddiclient' }} ]]; then
./gradlew --info build
else
./gradlew --info build sonar
fi
Expand Down

0 comments on commit 1c74f35

Please sign in to comment.