Skip to content

Commit e11167d

Browse files
tgauthTravisEz13
andauthored
Add Daily Link Check GitHub Workflow (PowerShell#17351)
* add github workflow for daily link checking * remove extra name statement * increase indentation * scan all files, not just modified ones * add retries for 429 errors * increase timeout for status 0 errors * uncomment teams notifier task * fix experimental features link * add copyright header * Update .github/workflows/markdownLinkDaily.yml Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
1 parent afe99fc commit e11167d

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
- **[Breaking changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes)**
2020
- [ ] None
2121
- **OR**
22-
- [ ] [Experimental feature(s) needed](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/staging/reference/6/Microsoft.PowerShell.Core/About/about_Experimental_Features.md)
22+
- [ ] [Experimental feature(s) needed](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.3/Microsoft.PowerShell.Core/About/about_Experimental_Features.md)
2323
- [ ] Experimental feature name(s): <!-- Experimental feature name(s) here -->
2424
- **User-facing changes**
2525
- [ ] Not Applicable
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2+
"timeout": "40s",
3+
"retryOn429": true,
4+
"retryCount": 5,
5+
"fallbackRetryDelay": "30s",
26
"aliveStatusCodes": [504, 503, 403, 200]
37
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT license.
3+
4+
name: PowerShell Daily Markdown Link Verification
5+
6+
on:
7+
workflow_dispatch:
8+
schedule:
9+
# At 13:00 UTC every day.
10+
- cron: '0 13 * * *'
11+
12+
jobs:
13+
markdown-link-check:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@master
18+
- name: Check Links
19+
uses: gaurav-nelson/github-action-markdown-link-check@v1
20+
with:
21+
use-quiet-mode: 'yes'
22+
use-verbose-mode: 'yes'
23+
config-file: .github/workflows/markdown-link/config.json
24+
- name: Microsoft Teams Notifier
25+
uses: skitionek/notify-microsoft-teams@master
26+
if: failure()
27+
with:
28+
webhook_url: ${{ secrets.PS_BUILD_TEAMS_CHANNEL }}
29+
overwrite: "{title: `Failure in .github/markdownLinkDaily.yml validating links. Look at ${workflow_link}`}"

0 commit comments

Comments
 (0)