olamy commented on code in PR #339:
URL: 
https://github.com/apache/maven-gh-actions-shared/pull/339#discussion_r4247234346


##########
.github/workflows/maven-verify.yml:
##########
@@ -314,6 +314,9 @@ jobs:
         with:
           java-version: ${{ inputs.ff-jdk-toolchain }}
           distribution: ${{ inputs.ff-jdk-distribution }}
+          cache-jdk: true
+          # only the default branch saves caches; other branches and pull 
requests restore them
+          cache-read-only: ${{ github.ref_name != 
github.event.repository.default_branch }}

Review Comment:
   If I understand correctly, it means replaying a branch build will not save 
cache anymore.
   For long time living branch that's a regression.
   Not sure what it saves, really?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to