-
-
Notifications
You must be signed in to change notification settings - Fork 150
55 lines (46 loc) · 1.68 KB
/
link_checker.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: Regularly check for broken links and report those as issue
on:
schedule:
- cron: '0 2 * * 1'
workflow_dispatch:
jobs:
check:
if: github.repository == 'contao/docs'
runs-on: ubuntu-latest
steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
extensions: json
- name: Checkout
uses: actions/checkout@v4
- name: Cache Composer vendor
uses: actions/cache@v3
with:
path: link-checker/vendor/
key: ${{ runner.os }}-link-checker-vendor
- name: Install Composer dependencies
run: cd link-checker && composer install --no-interaction --no-suggest
- name: Link checker (dev)
run: link-checker/check dev
continue-on-error: true
- name: Link checker (manual)
run: link-checker/check manual
continue-on-error: true
- name: Create issue (dev)
uses: peter-evans/create-issue-from-file@v4
with:
title: Link Checker Report
content-filepath: ./link-checker/dev-result.md
labels: |
Bug
Developer Documentation
- name: Create issue (manual)
uses: peter-evans/create-issue-from-file@v4
with:
title: Link Checker Report
content-filepath: ./link-checker/manual-result.md
labels: |
Bug
User Manual