File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
1118jobs :
1219 link-check :
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
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 :
You can’t perform that action at this time.
0 commit comments