@@ -54,9 +54,6 @@ inputs:
5454 setup-latest-java :
5555 description : Setup latest stable java version
5656 default : ' false'
57- cache-key-prefix :
58- description : Add a prefix to cache key
59- default : ' '
6057runs :
6158 using : " composite"
6259 steps :
@@ -116,9 +113,9 @@ runs:
116113 !.m2/repository/io/helidon/**
117114 enableCrossOsArchive : true
118115 # only hash top-level poms to keep it fast
119- key : ${{ inputs.cache-key-prefix }}local-maven -${{ hashFiles('*/pom.xml', 'pom.xml') }}
116+ key : local-maven- ${{ github.run_id }}-${{ hashFiles('*/pom.xml', 'pom.xml') }}
120117 restore-keys : |
121- ${{ inputs.cache-key-prefix }}local-maven-
118+ local-maven- ${{ github.run_id }}
122119 - name : Cache local Maven repository (read-only)
123120 if : ${{ inputs.maven-cache == 'read-only' }}
124121 uses :
actions/cache/[email protected] @@ -127,9 +124,9 @@ runs:
127124 .m2/repository/**/*.*
128125 !.m2/repository/io/helidon/**
129126 enableCrossOsArchive : true
130- key : ${{ inputs.cache-key-prefix }}local-maven -${{ hashFiles('*/pom.xml', 'pom.xml') }}
127+ key : local-maven- ${{ github.run_id }}-${{ hashFiles('*/pom.xml', 'pom.xml') }}
131128 restore-keys : |
132- ${{ inputs.cache-key-prefix }}local-maven-
129+ local-maven- ${{ github.run_id }}
133130 - name : Build cache (read-write)
134131 if : ${{ inputs.build-cache == 'read-write' }}
135132@@ -138,7 +135,7 @@ runs:
138135 ./**/target/**
139136 .m2/repository/io/helidon/**
140137 enableCrossOsArchive : true
141- key : ${{ inputs.cache-key-prefix }} build-cache-${{ github.run_id }}-${{ github.run_attempt }}-${{ inputs.build-cache-id }}
138+ key : build-cache-${{ github.run_id }}-${{ github.run_attempt }}-${{ inputs.build-cache-id }}
142139 restore-keys : |
143140 build-cache-${{ github.run_id }}-${{ github.run_attempt }}-
144141 build-cache-${{ github.run_id }}-
@@ -151,10 +148,10 @@ runs:
151148 .m2/repository/io/helidon/**
152149 enableCrossOsArchive : true
153150 fail-on-cache-miss : true
154- key : ${{ inputs.cache-key-prefix }} build-cache-${{ github.run_id }}-${{ github.run_attempt }}-${{ inputs.build-cache-id }}
151+ key : build-cache-${{ github.run_id }}-${{ github.run_attempt }}-${{ inputs.build-cache-id }}
155152 restore-keys : |
156- ${{ inputs.cache-key-prefix }} build-cache-${{ github.run_id }}-${{ github.run_attempt }}-
157- ${{ inputs.cache-key-prefix }} build-cache-${{ github.run_id }}-
153+ build-cache-${{ github.run_id }}-${{ github.run_attempt }}-
154+ build-cache-${{ github.run_id }}-
158155 - name : Exec
159156 env :
160157 MVN_ARGS : |
0 commit comments