Skip to content

Commit

Permalink
test 3, attempting to "pass"
Browse files Browse the repository at this point in the history
  • Loading branch information
Matte22 committed Aug 21, 2024
1 parent 705f787 commit 919349a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/client-sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ jobs:
name: SonarCloud Analysis client
runs-on: ubuntu-latest
steps:
# Checkout the repo
- name: Check if PR is from a fork
id: check_fork
run: |
if [ "${{ github.event.pull_request.head.repo.fork }}" == "true" ]; then
echo "This is a PR from a fork, skipping sonarcloud analysis."
echo "SKIP_STEP=true" >> $GITHUB_ENV
fi
- name: Checkout repository
if: env.SKIP_STEP != 'true'
uses: actions/checkout@v4
with:
fetch-depth: 0
# Analyze client with SonarCloud
- name: Skip notice
if: github.event.pull_request.head.repo.fork == true
run: echo "SonarCloud analysis skipped due to PR from fork."
- name: Check SonarCloud Token
run: |
if [ -z "${{ secrets.SONAR_TOKEN_CLIENT }}" ]; then
echo "SonarCloud token not found. Skipping SonarCloud analysis."
exit 0
fi

- name: Analyze client with SonarCloud
if: env.SKIP_STEP != 'true'
uses: SonarSource/sonarcloud-github-action@v2.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 919349a

Please sign in to comment.