diff --git a/.github/workflows/daily-markdown-link-check.yaml b/.github/workflows/daily-markdown-link-check.yaml new file mode 100644 index 00000000..ffeb12a1 --- /dev/null +++ b/.github/workflows/daily-markdown-link-check.yaml @@ -0,0 +1,18 @@ +name: Daily Markdown Link Check +run-name: ${{github.event.pull_request.title}} +on: + schedule: + # Run everyday at 5:00 AM + - cron: "0 5 * * *" +jobs: + markdown-link-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-quiet-mode: 'yes' + use-verbose-mode: 'yes' + config-file: '.mlc.config.json' + folder-path: '.' + max-depth: -1 \ No newline at end of file diff --git a/.github/workflows/pr-markdown-link-check.yaml b/.github/workflows/pr-markdown-link-check.yaml new file mode 100644 index 00000000..fea8e1cc --- /dev/null +++ b/.github/workflows/pr-markdown-link-check.yaml @@ -0,0 +1,17 @@ +name: PR Markdown Link Check +run-name: ${{github.event.pull_request.title}} +on: [ pull_request ] +jobs: + markdown-link-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-quiet-mode: 'yes' + use-verbose-mode: 'yes' + config-file: '.mlc.config.json' + folder-path: '.' + max-depth: -1 + check-modified-files-only: 'yes' + base-branch: '${{ github.base_ref }}' \ No newline at end of file diff --git a/mlc.config.json b/mlc.config.json new file mode 100644 index 00000000..70d4d516 --- /dev/null +++ b/mlc.config.json @@ -0,0 +1,12 @@ +{ + "replacementPatterns": [ + { + "_comment": "a replacement rule for all the in-repository references", + "pattern": "^/", + "replacement": "{{BASEURL}}/" + } + ], + "timeout": "20s", + "retryCount": 5, + "fallbackRetryDelay": "30s" + } \ No newline at end of file