mirror of
https://github.com/dromara/hertzbeat.git
synced 2026-09-17 09:40:58 +00:00
[fix] Fix some issues related to ci (#4135)
This commit is contained in:
@@ -53,7 +53,12 @@ jobs:
|
||||
- name: Check Markdown
|
||||
uses: DavidAnson/markdownlint-cli2-action@07035fd053f7be764496c0f8d8f9f41f98305101
|
||||
with:
|
||||
globs: './home/**/*.md'
|
||||
globs: |
|
||||
./home/README.md
|
||||
./home/blog/**/*.md
|
||||
./home/docs/**/*.md
|
||||
./home/i18n/zh-cn/docusaurus-plugin-content-blog/**/*.md
|
||||
./home/i18n/zh-cn/docusaurus-plugin-content-docs/current/**/*.md
|
||||
|
||||
- name: Check filenames
|
||||
run: python ./script/ci/docs/check_file_name.py ./script/ci/docs/check_file_name.json
|
||||
@@ -61,7 +66,8 @@ jobs:
|
||||
- name: Dead Link Check
|
||||
run: |
|
||||
sudo npm install -g markdown-link-check@3.8.7
|
||||
find ./home -name "*.md" > all_md_files.txt
|
||||
find ./home/docs ./home/blog ./home/i18n/zh-cn/docusaurus-plugin-content-docs/current ./home/i18n/zh-cn/docusaurus-plugin-content-blog -name "*.md" > all_md_files.txt
|
||||
printf '%s\n' ./home/README.md >> all_md_files.txt
|
||||
grep -vFf ./script/ci/exclude_files.txt all_md_files.txt > to_check.txt
|
||||
xargs -P 8 -a to_check.txt -I{} markdown-link-check -c ./script/ci/link_check.json -q "{}"
|
||||
|
||||
|
||||
@@ -15,7 +15,13 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
{
|
||||
"globs": ["home/**/*.md"],
|
||||
"globs": [
|
||||
"home/README.md",
|
||||
"home/blog/**/*.md",
|
||||
"home/docs/**/*.md",
|
||||
"home/i18n/zh-cn/docusaurus-plugin-content-blog/**/*.md",
|
||||
"home/i18n/zh-cn/docusaurus-plugin-content-docs/current/**/*.md"
|
||||
],
|
||||
"config": {
|
||||
"default": true,
|
||||
"MD001": true,
|
||||
|
||||
@@ -108,14 +108,14 @@ sinks:
|
||||
codec: json
|
||||
framing:
|
||||
method: newline_delimited
|
||||
headers:
|
||||
content-type: application/json
|
||||
auth:
|
||||
strategy: basic
|
||||
user: admin
|
||||
password: hertzbeat
|
||||
# Increase timeout and retry settings for stability in CI environments
|
||||
request:
|
||||
headers:
|
||||
content-type: application/json
|
||||
timeout_secs: 60
|
||||
retry_attempts: 10
|
||||
retry_initial_backoff_secs: 2
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@
|
||||
"clear": "docusaurus clear",
|
||||
"write-translations": "docusaurus write-translations",
|
||||
"write-heading-ids": "docusaurus write-heading-ids",
|
||||
"md-lint": "markdownlint-cli2 --config ../.markdownlint-cli2.jsonc \"./**/*.md\" \"#node_modules\"",
|
||||
"md-lint": "markdownlint-cli2 --config ../.markdownlint-cli2.jsonc \"README.md\" \"blog/**/*.md\" \"docs/**/*.md\" \"i18n/zh-cn/docusaurus-plugin-content-blog/**/*.md\" \"i18n/zh-cn/docusaurus-plugin-content-docs/current/**/*.md\" \"#node_modules\"",
|
||||
"md-lint-fix": "pnpm md-lint --fix",
|
||||
"github-avatar": "node github-avatar.js"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user