Skip to content

Commit 7f8fa39

Browse files
authored
Update groovy-joint-workflow.yml (#13341)
* Update groovy-joint-workflow.yml Cache the local ~/.m2 and groovy based on the commit SHA for short lived cache * Add the missing $ for GitHub Expression
1 parent 7265f6b commit 7f8fa39

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/groovy-joint-workflow.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ jobs:
4848
path: |
4949
~/groovy
5050
~/.m2/repository
51-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
52-
restore-keys: |
53-
${{ runner.os }}-maven-
51+
key: cache-local-groovy-maven-${{ github.sha }}
5452
- name: Checkout Groovy 3_0_X (Grails 5 and later)
5553
if: startsWith(github.ref, 'refs/heads/6.') || startsWith(github.base_ref, '6.') || startsWith(github.ref, 'refs/heads/5.') || startsWith(github.base_ref, '5.')
5654
run: cd .. && git clone --depth 1 https://github.com/apache/groovy.git -b GROOVY_3_0_X --single-branch
@@ -137,9 +135,7 @@ jobs:
137135
path: |
138136
~/groovy
139137
~/.m2/repository
140-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
141-
restore-keys: |
142-
${{ runner.os }}-maven-
138+
key: cache-local-groovy-maven-${{ github.sha }}
143139
- name: Set CI_GROOVY_VERSION for Grails
144140
run: |
145141
echo "CI_GROOVY_VERSION=${{needs.build_groovy.outputs.groovyVersion}}" >> $GITHUB_ENV

0 commit comments

Comments
 (0)