Skip to content

Commit e3f2486

Browse files
KATO-Hiroclaude
andcommitted
fix: Use correct lychee cache file location
lychee does not support --cache-dir option. Default cache location is .lycheecache. Changes: - Remove --cache-dir from lychee-action args - Update actions/cache path from .github/.lychee.cache to .lycheecache - Update .gitignore to ignore .lycheecache (not .github/.lychee.cache) This resolves the --cache-dir option error and properly caches the cache file. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 5eaee04 commit e3f2486

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/link_checker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
- name: Restore lychee cache
1414
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
1515
with:
16-
path: .github/.lychee.cache
16+
path: .lycheecache
1717
key: cache-lychee-${{ github.ref }}
1818
restore-keys: cache-lychee-
1919

2020
- uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0
2121
with:
22-
args: --cache --cache-dir .github/.lychee.cache --max-cache-age 14d --quiet "docs/**/*.md" "monthly_changelog/**/*.md" "README.md" "CONTRIBUTING.md"
22+
args: --cache --max-cache-age 14d --quiet "docs/**/*.md" "monthly_changelog/**/*.md" "README.md" "CONTRIBUTING.md"
2323
fail: true

.github/workflows/link_checker_for_modified_files.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ jobs:
2424
if: steps.changed-files.outputs.any_changed == 'true'
2525
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
2626
with:
27-
path: .github/.lychee.cache
27+
path: .lycheecache
2828
key: cache-lychee-${{ github.ref }}
2929
restore-keys: cache-lychee-
3030

3131
- uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0
3232
if: steps.changed-files.outputs.any_changed == 'true'
3333
with:
34-
args: --cache --cache-dir .github/.lychee.cache --max-cache-age 14d --quiet ${{ steps.changed-files.outputs.all_changed_files }}
34+
args: --cache --max-cache-age 14d --quiet ${{ steps.changed-files.outputs.all_changed_files }}
3535
fail: true

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@ __pycache__/
121121
site/
122122

123123
# Lychee cache
124-
.github/.lychee.cache
124+
.lycheecache

0 commit comments

Comments
 (0)