forked from FIRST-Tech-Challenge/ftcdocs
-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (30 loc) · 891 Bytes
/
link-check.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: "Link Check"
on:
workflow_dispatch:
schedule:
- cron: '0 */12 * * *'
jobs:
link-check:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Python Setup
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: 'pip'
- name: Python Install Dependencies
run: pip install -r docs/requirements.txt
- name: link-check
run: make -C docs/ linkcheck SPHINXOPTS="-W --keep-going -n -q"
- name: Arhive Log
if: ${{ failure() }}
uses: actions/upload-artifact@v2
env:
PR_NUMBER: ${{ github.event.number }}
ID: ${{ github.run_attempt }}
with:
name: LINKCHECK-${{ env.PR_NUMBER }}-${{ env.ID }}
path: docs/build/linkcheck/output.txt
retention-days: 7