Skip to content

Commit 53c9808

Browse files
Use job name and matrix item in cache key
1 parent 63bef71 commit 53c9808

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ jobs:
8080
- name: Select Java Version
8181
run: mise use java@21
8282
- name: Configure Maven
83-
uses: SonarSource/ci-github-actions/config-maven@v1
83+
uses: SonarSource/ci-github-actions/config-maven@tt/cache
8484
with:
85+
cache-fragment: ${{ toJSON(matrix.item) }}
8586
artifactory-reader-role: private-reader
8687
use-develocity: ${{ env.USE_DEVELOCITY }}
8788
develocity-url: ${{ env.DEVELOCITY_URL }}
@@ -142,8 +143,9 @@ jobs:
142143
- name: Select Java Version
143144
run: mise use java@21
144145
- name: Configure Maven
145-
uses: SonarSource/ci-github-actions/config-maven@v1
146+
uses: SonarSource/ci-github-actions/config-maven@tt/cache
146147
with:
148+
cache-fragment: ${{ matrix.item.sq_version }}
147149
artifactory-reader-role: private-reader
148150
use-develocity: ${{ env.USE_DEVELOCITY }}
149151
develocity-url: ${{ env.DEVELOCITY_URL }}

0 commit comments

Comments
 (0)