-
-
Notifications
You must be signed in to change notification settings - Fork 16
55 lines (51 loc) · 1.31 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
name: Check URLs 🌐
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- main
workflow_dispatch:
workflow_call:
inputs:
additional_args:
description: Additional arguments to pass to lychee
required: false
type: string
default: ""
concurrency:
group: links-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
links:
name: Validate Links 🔎
runs-on: ubuntu-latest
if: >
!contains(github.event.commits[0].message, '[skip links]')
&& github.event.pull_request.draft == false
steps:
- name: Checkout repo 🛎
uses: actions/checkout@v3
- name: Check URLs in docs 🔬
uses: lycheeverse/[email protected]
with:
args: >-
--exclude-private
--exclude "https://github.com.*.git|https://insightsengineering.github.io.*|lewagon.*|knightdave.*|.*users.noreply.github.com|lycheeverse.*"
--verbose
--no-progress
${{ inputs.additional_args }}
**/*.md
**/*.html
**/*.Rmd
**/*.yaml
**/*.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}