Skip to content

Commit fdba8a4

Browse files
zgliczclaude
andauthored
JS-1137 Fix maven cache miss on PR branches (#6228)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c9189ef commit fdba8a4

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.github/actions/maven-cache/action.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,14 @@ runs:
1717
if: github.ref_name != github.event.repository.default_branch
1818
uses: actions/cache/restore@v5
1919
with:
20-
path: |
21-
~/.m2/repository
22-
!~/.m2/repository/org/sonarsource/javascript
20+
path: ~/.m2/repository
2321
key: maven-${{ runner.os }}-${{ inputs.cache-month }}-${{ inputs.maven-hash }}
2422
restore-keys: maven-${{ runner.os }}-${{ inputs.cache-month }}-
2523

2624
# Full cache on default branch (save enabled)
27-
# Note: Exclusion patterns don't work reliably with runs-on/cache used by gh-action_cache.
28-
# Instead, we clean up SonarJS artifacts at the end of the job before post-job cache save.
2925
- name: Cache Maven dependencies (default branch)
3026
if: github.ref_name == github.event.repository.default_branch
31-
uses: SonarSource/gh-action_cache@v1
27+
uses: actions/cache@v5
3228
with:
3329
path: ~/.m2/repository
3430
key: maven-${{ runner.os }}-${{ inputs.cache-month }}-${{ inputs.maven-hash }}

0 commit comments

Comments
 (0)