generated from pharmaverse/admiraltemplate
-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (52 loc) · 1.17 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
---
name: Check URLs
on:
push:
branches:
- main
- devel
- pre-release
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- main
- devel
- pre-release
workflow_dispatch:
workflow_call:
concurrency:
group: links-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
links:
name: Validate Links
runs-on: ubuntu-20.04
if: >
!contains(github.event.commits[0].message, '[skip links]')
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Check URLs in docs
uses: lycheeverse/[email protected]
with:
fail: true
jobSummary: true
format: markdown
output: links-results.md
args: >-
--exclude-private
--exclude "https://github.com.*.git|lycheeverse.*"
--verbose
--no-progress
${{ inputs.additional_args }}
**/*.md
**/*.html
**/*.Rmd
**/*.yaml
**/*.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}