Skip to content

Commit

Permalink
GitHub Actions change that enables Dependabot to run builds (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
roar-skinderviken authored Apr 15, 2024
1 parent 9bd371a commit 712288a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ on:
GAR_PROJECT_ID:
required: false
SONAR_TOKEN:
required: true
required: false

env:
SONAR_TARGETS: ${{ secrets.SONAR_TOKEN && format('jacocoTestReport sonar -Dsonar.token={0}', secrets.SONAR_TOKEN) || '' }}

jobs:
build-with-gradle:
Expand All @@ -52,9 +55,9 @@ jobs:
gradle-distribution-sha-256-sum-warning: false
gradle-version: wrapper
arguments: |
${{ inputs.gradle-targets }} jacocoTestReport sonar
${{ inputs.gradle-args }}
-Dsonar.token=${{ secrets.SONAR_TOKEN }}
${{ inputs.gradle-targets }}
${{ inputs.gradle-args }}
${{ env.SONAR_TARGETS }}
--daemon --parallel --build-cache --info
- id: "auth"
Expand Down

0 comments on commit 712288a

Please sign in to comment.