Skip to content

Commit 6a18ac5

Browse files
committed
Use develocity-actions/setup-maven to surface Build Scan links
Don't add PR comment with build scan links - scans aren't published for PR builds against forks
1 parent 230f3b0 commit 6a18ac5

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,14 @@ jobs:
9292
distribution: 'temurin'
9393
java-version: '21'
9494

95+
- name: Setup Develocity
96+
uses: gradle/develocity-actions/[email protected]
97+
with:
98+
add-pr-comment: false
99+
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
100+
95101
- name: Compile project
96102
run: ./mvnw -B -ntp clean package -Pquickbuild -Dtoolchain.skip=true
97-
env:
98-
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
99103

100104
- name: Perform CodeQL Analysis
101105
uses: github/codeql-action/analyze@v2

.github/workflows/receive-pr.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ jobs:
2828
java-version: '21'
2929
distribution: 'temurin'
3030
cache: 'maven'
31+
- name: Setup Develocity
32+
uses: gradle/develocity-actions/[email protected]
33+
with:
34+
add-pr-comment: false
35+
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
3136

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

4952
# Capture the diff
5053
- name: Create patch

0 commit comments

Comments
 (0)