This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch v4
in repository https://gitbox.apache.org/repos/asf/maven-gh-actions-shared.git
The following commit(s) were added to refs/heads/v4 by this push:
new 00a1946 Use cache only for last setup-java step
00a1946 is described below
commit 00a19466d626389cef61345e3b913f90022ec9e3
Author: Slawomir Jaranowski <[email protected]>
AuthorDate: Fri Mar 20 00:03:59 2026 +0100
Use cache only for last setup-java step
As we have execute step setup-java twice, for all JDK with toolchain and
last for default JDK
cache can be used only on last one to avoid twice download cache file
---
.github/workflows/maven-verify.yml | 2 --
1 file changed, 2 deletions(-)
diff --git a/.github/workflows/maven-verify.yml
b/.github/workflows/maven-verify.yml
index 011fb2a..2e18f9a 100644
--- a/.github/workflows/maven-verify.yml
+++ b/.github/workflows/maven-verify.yml
@@ -302,7 +302,6 @@ jobs:
with:
java-version: ${{ inputs.ff-jdk-toolchain }}
distribution: ${{ inputs.ff-jdk-distribution }}
- cache: 'maven'
- name: Set up JDK
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 #
v5.2.0
@@ -427,7 +426,6 @@ jobs:
with:
java-version: ${{ inputs.jdk-toolchain }}
distribution: ${{ matrix.distribution }}
- cache: 'maven'
- name: Set up JDK
if: steps.should-run.conclusion == 'success'