Skip to content

Commit f2194dc

Browse files
authored
Updates to global.json and markdown-link-check action usage (#206)
* Updates .NET SDK version Updates the .NET SDK version to 9.0.300 and sets rollForward to latestMinor. This ensures the project uses a specific SDK version and automatically rolls forward to the latest minor version updates. * Updates markdown link check action version Updates the `gaurav-nelson/github-action-markdown-link-check` action to version 1.0.17 across all workflow files and the README. This ensures that the latest version of the link checker is used, potentially incorporating bug fixes and new features. * Adds retry mechanism for link checking Improves link checking reliability by implementing a retry mechanism for failed requests. Configures the link checker to retry requests that return a 429 status code (Too Many Requests). This prevents false positives due to temporary network issues or rate limiting. Specifies the number of retries and the delay between retries.
1 parent d5219bb commit f2194dc

File tree

6 files changed

+11
-8
lines changed

6 files changed

+11
-8
lines changed

.github/markdown-link-check-config.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@
2020
},
2121
"description": "Avoids 403s from GitHub docs"
2222
}
23-
]
23+
],
24+
"retryOn429": true,
25+
"retryCount": 3,
26+
"fallbackRetryDelay": "3s"
2427
}

.github/workflows/markdown-link-check-with-errors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@v4
3030
- name: Markdown Link Check
3131
continue-on-error: true
32-
uses: gaurav-nelson/github-action-markdown-link-check@v1
32+
uses: gaurav-nelson/github-action-markdown-link-check@1.0.17
3333
with:
3434
config-file: .github/markdown-link-check-config.json
3535
folder-path: .github/workflows/markdown-link-check-files/with-errors/

.github/workflows/markdown-link-check-without-errors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@v4
3030
- name: Markdown Link Check
3131
continue-on-error: true
32-
uses: gaurav-nelson/github-action-markdown-link-check@v1
32+
uses: gaurav-nelson/github-action-markdown-link-check@1.0.17
3333
with:
3434
config-file: .github/markdown-link-check-config.json
3535
folder-path: .github/workflows/markdown-link-check-files/without-errors/

.github/workflows/repo-markdown-link-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ jobs:
2828
uses: actions/checkout@v4
2929
- name: Markdown link check
3030
id: mlc-push
31-
uses: gaurav-nelson/github-action-markdown-link-check@1.0.15
31+
uses: gaurav-nelson/github-action-markdown-link-check@1.0.17
3232
if: github.event_name != 'pull_request'
3333
with:
3434
use-quiet-mode: yes
3535
config-file: .github/markdown-link-check-config-for-repo.json
3636
- name: Markdown link check
3737
id: mlc-pr
38-
uses: gaurav-nelson/github-action-markdown-link-check@1.0.15
38+
uses: gaurav-nelson/github-action-markdown-link-check@1.0.17
3939
if: github.event_name == 'pull_request'
4040
with:
4141
use-quiet-mode: yes
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"sdk": {
3-
"version": "9.0.x",
4-
"rollForward": "disable",
3+
"version": "9.0.300",
4+
"rollForward": "latestMinor",
55
"allowPrerelease": false
66
}
77
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
steps:
5252
- uses: actions/checkout@v3
5353
- name: Markdown Link Check
54-
uses: gaurav-nelson/github-action-markdown-link-check@v1
54+
uses: gaurav-nelson/github-action-markdown-link-check@1.0.17
5555
with:
5656
use-quiet-mode: no
5757
```

0 commit comments

Comments
 (0)