Skip to content

Commit 7a848f5

Browse files
committed
Try to workaround the downloaded artifacts cache
1 parent 3e417c2 commit 7a848f5

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,28 @@ inputs:
1212
runs:
1313
using: "composite"
1414
steps:
15+
- name: Peek activemq_version
16+
id: activemq_peek
17+
run: |
18+
echo "activemq_version=$(yq '.activemq_version' roles/activemq/defaults/main.yml)" >> $GITHUB_OUTPUT
19+
shell: bash
20+
21+
- name: Peek tomcat_version
22+
id: tomcat_peek
23+
run: |
24+
echo "tomcat_version=$(yq '.tomcat_version' roles/tomcat/defaults/main.yml)" >> $GITHUB_OUTPUT
25+
shell: bash
26+
1527
- name: Restore downloaded artifacts
1628
id: artifacts-cache
1729
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
1830
with:
1931
path: 'downloads/**'
20-
key: cache-downloads-v${{ inputs.cache-version }}-${{ inputs.cache-name }}-${{ hashFiles('group_vars/all.yml') }}-${{ hashFiles('.github/actions/cache-downloads/prefetch-artifacts.yml') }}
32+
key: >-
33+
cache-downloads-v${{ inputs.cache-version }}-${{ inputs.cache-name }}-
34+
mq${{ steps.activemq_peek.activemq_version }}-
35+
tc${{ steps.tomcat_peek.tomcat_version }}-
36+
${{ hashFiles('.github/actions/cache-downloads/prefetch-artifacts.yml') }}
2137
2238
- name: Prefetch artifacts
2339
shell: bash

0 commit comments

Comments
 (0)