Skip to content

Commit f832600

Browse files
authored
chore(ci): Fix offline link check (#923)
* ci: correct workflow file format 🤦 * ci: add root directory to offline link check This ensures that the link checkers knows where to look for absolute links.
1 parent eac226d commit f832600

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/offline-link-check.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ jobs:
1010
link_check:
1111
runs-on: ubuntu-latest
1212
steps:
13-
uses: actions/checkout@v5
14-
uses: lycheeverse/lychee-action@v2
15-
# Only check local files, no network requests
16-
args: --offline --no-progress 'src/content/docs/**/*.md'
17-
# Fail job when lychee returns a non-zero exit code
18-
fail: true
13+
- uses: actions/checkout@v5
14+
- uses: lycheeverse/lychee-action@v2
15+
with:
16+
# Only check local files, no network requests
17+
args: --config './lychee.toml' --no-progress --offline --root-dir "$GITHUB_WORKSPACE/public/" 'src/content/docs/**/*.md'
18+
# Fail job when lychee returns a non-zero exit code
19+
fail: true

0 commit comments

Comments
 (0)