Skip to content

Commit bef3a77

Browse files
committed
Don't run sonar token check when not required
1 parent 403faee commit bef3a77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/sonar.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ env:
2626
jobs:
2727
token-check:
2828
runs-on: ubuntu-latest
29+
if: ${{ !(github.event_name == 'pull_request' && startsWith(github.head_ref, 'renovate/')) }}
2930
outputs:
3031
hasToken: ${{ steps.check-token.outputs.has }}
3132
steps:
@@ -35,11 +36,10 @@ jobs:
3536
env:
3637
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3738

38-
sonar:
39-
name: SonarCloud Scan
39+
sonar-scan:
4040
runs-on: ubuntu-latest
4141
needs: token-check
42-
if: ${{ !(github.event_name == 'pull_request' && startsWith(github.head_ref, 'renovate/')) && needs.token-check.outputs.hasToken }}
42+
if: ${{ needs.token-check.outputs.hasToken }}
4343
steps:
4444
- uses: actions/checkout@v4
4545
with:

0 commit comments

Comments
 (0)