Skip to content

Commit

Permalink
Use JDK version as part of the cache key.
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock committed Feb 6, 2025
1 parent cb8dfff commit a4f65b7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/test-unreleased.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Integration with Unreleased OpenSearch
on:
push:
branches:
- "main"
- 'main'
paths-ignore:
- '*.md'
pull_request:
branches:
- "main"
- 'main'
paths-ignore:
- '*.md'

Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Get OpenSearch branch top
id: get-key
working-directory: opensearch
run: echo key=`git log -1 --format='%H'` >> $GITHUB_OUTPUT
run: echo key=`git log -1 --format='%H'`-${{ matrix.entry.jdk_version }} >> $GITHUB_OUTPUT

- name: Restore cached build
id: cache-restore
Expand All @@ -60,7 +60,6 @@ jobs:
if: steps.cache-restore.outputs.cache-hit != 'true'
working-directory: opensearch
run: ./gradlew :distribution:archives:linux-tar:assemble --stacktrace


- name: Save cached build
if: steps.cache-restore.outputs.cache-hit != 'true'
Expand Down

0 comments on commit a4f65b7

Please sign in to comment.