forked from microsoft/agent-governance-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 865 Bytes
/
markdown-link-check.yml
File metadata and controls
31 lines (27 loc) · 865 Bytes
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
name: Markdown Link Check
on:
pull_request:
paths:
- '**/*.md'
workflow_dispatch:
jobs:
link-check:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Get Changed Markdown Files
id: changed-files
uses: tj-actions/changed-files@v44
with:
files: |
**/*.md
- name: Run Link Checker
if: steps.changed-files.outputs.any_changed == 'true'
uses: lycheeverse/lychee-action@v1.9.0
with:
# Configuration is defined here directly in YAML (no JSON file needed)
# --exclude-loopback: ignores localhost/127.0.0.1
# --verbose: shows details in the logs
args: --verbose --no-progress --exclude-loopback ${{ steps.changed-files.outputs.all_changed_files }}
fail: true