-
Notifications
You must be signed in to change notification settings - Fork 861
48 lines (44 loc) · 1.5 KB
/
gb-docs.yml
File metadata and controls
48 lines (44 loc) · 1.5 KB
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
44
45
46
47
48
name: GB Docs Link Checker
on:
schedule:
- cron: '0 0 */14 * *' # every two weeks at midnight UTC
workflow_dispatch:
pull_request:
branches:
- v2
jobs:
# Check docs changes for PRs only
check-docs-changes:
if: github.repository == 'SeldonIO/seldon-core' && github.event_name == 'pull_request'
runs-on: ubuntu-latest
outputs:
docs-changed: ${{ steps.changes.outputs.docs }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
docs:
- 'docs-gb/**/*.md'
# Run lychee for schedule and manual dispatch
lychee-check-always:
if: github.repository == 'SeldonIO/seldon-core' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Lychee link checker on docs-gb
uses: lycheeverse/lychee-action@v1.10.0
with:
args: --verbose --no-progress docs-gb/**/*.md
# Run lychee for PRs only if docs changed
lychee-check-pr:
if: github.repository == 'SeldonIO/seldon-core' && github.event_name == 'pull_request' && needs.check-docs-changes.outputs.docs-changed == 'true'
needs: [check-docs-changes]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Lychee link checker on docs-gb
uses: lycheeverse/lychee-action@v1.10.0
with:
args: --verbose --no-progress docs-gb/**/*.md