Skip to content

Commit

Permalink
Use develocity-actions/setup-maven to surface Build Scan links
Browse files Browse the repository at this point in the history
Don't add PR comment with build scan links - scans aren't published for PR builds against forks
  • Loading branch information
tylerbertrand committed Jan 7, 2025
1 parent ec430f0 commit 98f387b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,14 @@ jobs:
distribution: 'temurin'
java-version: '21'

- name: Setup Develocity
uses: gradle/develocity-actions/[email protected]
with:
add-pr-comment: false
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

- name: Compile project
run: ./mvnw -B -ntp clean package -Pquickbuild -Dtoolchain.skip=true
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
7 changes: 5 additions & 2 deletions .github/workflows/receive-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
java-version: '21'
distribution: 'temurin'
cache: 'maven'
- name: Setup Develocity
uses: gradle/develocity-actions/[email protected]
with:
add-pr-comment: false
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

# Capture the PR number
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow
Expand All @@ -43,8 +48,6 @@ jobs:
# Execute recipes
- name: Apply OpenRewrite recipes
run: ./mvnw -Dtoolchain.skip=true -Dlicense.skip=true -DskipTests=true -P openrewrite clean install
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

# Capture the diff
- name: Create patch
Expand Down

0 comments on commit 98f387b

Please sign in to comment.