-
Notifications
You must be signed in to change notification settings - Fork 134
44 lines (41 loc) · 1013 Bytes
/
check-links.yml
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
37
38
39
40
41
42
43
name: "Check external links"
on:
# push:
# branches: [ main ]
# pull_request:
# types:
# - opened
# - synchronize
# - reopened
schedule:
- cron: "5 8 * * Sun"
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
jobs:
test:
if: ${{ github.repository == 'splunk/public-o11y-docs' || github.repository == 'splunk/private-o11y-docs' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Install pip
run: pip3 install --upgrade pip
- name: Install requirements
run: pip3 install -r requirements.txt --root-user-action=ignore
- name: Test the docs
run: make linkcheck