Skip to content

Commit 4452247

Browse files
committed
[hotfix] Use branch-based cache key for legacy docs workflow
Since legacy branches are frozen, use a simple branch-based cache key instead of content-based hashing. This avoids the hashFiles error while still providing goo cache reuse across builds.
1 parent 4f440ef commit 4452247

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/docs-legacy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ jobs:
5959
uses: actions/cache@v4
6060
with:
6161
path: ~/.m2/repository
62-
key: ${{ runner.os }}-maven-docs-${{ hashFiles('**/pom.xml') }}
62+
key: ${{ runner.os }}-maven-docs-legacy-${{ inputs.branch }}
6363
restore-keys: |
64-
${{ runner.os }}-maven-docs-
64+
${{ runner.os }}-maven-docs-legacy-
6565
6666
- name: Build Jekyll documentation (release-1.12 and earlier)
6767
if: ${{ contains(fromJSON('["release-1.0", "release-1.1", "release-1.2", "release-1.3", "release-1.4", "release-1.5", "release-1.6", "release-1.7", "release-1.8", "release-1.9", "release-1.10", "release-1.11", "release-1.12"]'), inputs.branch) }}

0 commit comments

Comments
 (0)