Skip to content

Commit 9a043de

Browse files
committed
ci: Use all dependencies versions as cache key
Signed-off-by: Patrick M. Niedzielski <[email protected]>
1 parent c56a0e3 commit 9a043de

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,9 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121

22-
- name: Checkout BlazingMQ
23-
run: git clone --depth 1 https://github.com/bloomberg/blazingmq
24-
25-
- name: Get latest BlazingMQ commit SHA
22+
- name: Compute hash of dependency versions
2623
id: get-sha
27-
working-directory: blazingmq
28-
run: echo "blazingmq_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
24+
run: echo "blazingmq_sha=$(sha1sum bin/clone-dependencies.sh | awk '{ print $1 }')" >> $GITHUB_OUTPUT
2925

3026
- name: Try to get cached BlazingMQ build artifacts
3127
id: cache-restore

0 commit comments

Comments
 (0)