Skip to content

Commit fa3e663

Browse files
committed
Test run
1 parent a613e6b commit fa3e663

4 files changed

Lines changed: 1432 additions & 37 deletions

File tree

.github/workflows/link_check.yaml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@ on:
55
branches:
66
- master
77
- "[0-9]+.[0-9]+"
8-
workflow_dispatch: ~
8+
workflow_dispatch:
9+
inputs:
10+
force_recheck:
11+
description: "Clear lychee cache and recheck all links from scratch"
12+
type: boolean
13+
default: false
914
pull_request: ~
15+
schedule:
16+
- cron: "0 6 * * *"
1017

1118
jobs:
1219
link-check:
@@ -31,18 +38,8 @@ jobs:
3138
- name: Build documentation
3239
run: mkdocs build --strict
3340

34-
- name: Determine base URL
35-
id: base-url
36-
run: |
37-
if [ "${{ github.event_name }}" = "pull_request" ]; then
38-
echo "url=https://ez-systems-developer-documentation--${{ github.event.pull_request.number }}.com.readthedocs.build/en/${{ github.event.pull_request.number }}/" >> "$GITHUB_OUTPUT"
39-
elif [[ "${{ github.ref_name }}" =~ ^[0-9]+\.[0-9]+$ ]]; then
40-
echo "url=https://doc.ibexa.co/en/${{ github.ref_name }}/" >> "$GITHUB_OUTPUT"
41-
else
42-
echo "url=https://doc.ibexa.co/en/latest/" >> "$GITHUB_OUTPUT"
43-
fi
44-
4541
- name: Restore lychee cache
42+
if: ${{ !inputs.force_recheck }}
4643
uses: actions/cache@v4
4744
with:
4845
path: .lycheecache
@@ -57,8 +54,7 @@ jobs:
5754
args: >-
5855
--config lychee.toml
5956
--cache
60-
--cache-exclude-status "500.."
61-
--base-url ${{ steps.base-url.outputs.url }}
57+
--cache-exclude-status "400.."
6258
site
6359
fail: true
6460
env:

.lycheecache

Whitespace-only changes.

0 commit comments

Comments
 (0)