-
-
Notifications
You must be signed in to change notification settings - Fork 667
39 lines (35 loc) · 1.1 KB
/
url-checker.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
name: URL Checker
on:
pull_request:
paths:
- '5.0/**'
push:
branches:
- master
paths:
- '5.0/**'
workflow_dispatch:
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set options
id: options
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
echo "check-modified-files-only=yes" >> $GITHUB_OUTPUT
echo "use-verbose-mode=yes" >> $GITHUB_OUTPUT
else
echo "check-modified-files-only=no" >> $GITHUB_OUTPUT
echo "use-verbose-mode=no" >> $GITHUB_OUTPUT
fi
- name: Check URLs
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
check-modified-files-only: ${{ steps.options.outputs.check-modified-files-only }}
config-file: .github/workflows/config/url-checker-config.json
folder-path: '5.0'
use-quiet-mode: yes
use-verbose-mode: ${{ steps.options.outputs.use-verbose-mode }}