Skip to content

Commit 849429e

Browse files
authored
Merge pull request #78 from microsoft/bruno-add-ghaction-validate-doc-links
Add GitHub workflow to validate documentation links and check for broken URLs
2 parents 87f2693 + d21d31f commit 849429e

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Validate Documentation Links
2+
3+
on:
4+
pull_request_target:
5+
branches:
6+
- main
7+
paths:
8+
- '**.md'
9+
push:
10+
branches:
11+
- main
12+
13+
permissions:
14+
contents: read
15+
pull-requests: write
16+
17+
jobs:
18+
check-broken-paths:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout Repo
22+
uses: actions/checkout@v3
23+
with:
24+
ref: ${{ github.event.pull_request.head.sha }}
25+
- name: Check broken Paths
26+
uses: john0isaac/[email protected]
27+
with:
28+
command: check_broken_paths
29+
directory: ./
30+
guide-url: 'https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/CONTRIBUTING.MD'
31+
github-token: ${{ secrets.GITHUB_TOKEN }}
32+
33+
check-urls-locale:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Checkout Repo
37+
uses: actions/checkout@v3
38+
with:
39+
ref: ${{ github.event.pull_request.head.sha }}
40+
- name: Check URLs Country Locale
41+
uses: john0isaac/[email protected]
42+
with:
43+
command: check_urls_locale
44+
directory: ./
45+
guide-url: 'https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/CONTRIBUTING.MD'
46+
github-token: ${{ secrets.GITHUB_TOKEN }}
47+
48+
check-broken-urls:
49+
runs-on: ubuntu-latest
50+
steps:
51+
- name: Checkout Repo
52+
uses: actions/checkout@v3
53+
with:
54+
ref: ${{ github.event.pull_request.head.sha }}
55+
- name: Check broken URLs
56+
uses: john0isaac/[email protected]
57+
with:
58+
command: check_broken_urls
59+
directory: ./
60+
guide-url: 'https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/CONTRIBUTING.MD'
61+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)