-
Notifications
You must be signed in to change notification settings - Fork 63
41 lines (32 loc) · 989 Bytes
/
docs-links.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
37
38
39
40
41
name: docs links on microk8s.io/docs
on:
schedule:
- cron: "0 13 * * *"
workflow_dispatch:
jobs:
check-links:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v3
- name: Install linkchecker
run: sudo pip install LinkChecker
- name: Write linkchecker config file
run: |
mkdir -p ~/.linkchecker
cp scripts/linkcheckerrc ~/.linkchecker/
- name: Run linkchecker
continue-on-error: true
run: |
linkchecker https://microk8s.io/docs > ~/.linkchecker/linkchecker-out.txt
- name: Parse linkchecker output
run: |
scripts/parseDocsLinkcheckerOutput
- name: Send message on failure
if: failure()
run: |
curl -X POST \
-F "workflow=${GITHUB_WORKFLOW}" \
-F "repo_name=${GITHUB_REPOSITORY}" \
-F "action_id=${GITHUB_RUN_ID}" \
${{ secrets.BOT_URL }}?room=docs