diff --git a/.github/workflows/markdown-link-check.yml b/.github/workflows/markdown-link-check.yml index 1084d7e..fe5a25c 100644 --- a/.github/workflows/markdown-link-check.yml +++ b/.github/workflows/markdown-link-check.yml @@ -29,4 +29,8 @@ jobs: uses: NVIDIA/spark-rapids-common/checkout@main - name: Run Markdown Link Check - uses: NVIDIA/spark-rapids-common/markdown-link-check@main + uses: YanxuanLiu/spark-rapids-common/markdown-link-check@markdown-check-sha + with: + max-depth: -1 + use-verbose-mode: 'yes' + config-file: '.github/workflows/markdown-links-check/markdown-links-check-config.json' diff --git a/.github/workflows/markdown-links-check/markdown-links-check-config.json b/.github/workflows/markdown-links-check/markdown-links-check-config.json new file mode 100644 index 0000000..de3af99 --- /dev/null +++ b/.github/workflows/markdown-links-check/markdown-links-check-config.json @@ -0,0 +1,20 @@ +{ + "ignorePatterns": [ + { + "pattern": "/docs" + }, + { + "pattern": "/datasets" + }, + { + "pattern": "/dockerfile" + }, + { + "pattern": "/examples" + } + ], + "timeout": "15s", + "retryOn429": true, + "retryCount":30, + "aliveStatusCodes": [200, 403] +} diff --git a/README.md b/README.md index 9070443..12f5b18 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,5 @@ ## Introduction This repository contains reusable GitHub Action workflows and common scripts used by Spark RAPIDS. + +[test-foo-link](foo.html) \ No newline at end of file diff --git a/TEST_README.md b/TEST_README.md new file mode 100644 index 0000000..fca180a --- /dev/null +++ b/TEST_README.md @@ -0,0 +1,13 @@ +# spark-rapids-common + +[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/NVIDIA/spark-rapids-common) + +## Introduction + +This repository contains reusable GitHub Action workflows and common scripts used by Spark RAPIDS. + +[test-link1](https://edge.urm.nvidia.com/artifactory/sw-spark-maven/com/nvidia/rapids-4-spark_2.12/25.08.0/rapids-4-spark_2.12-25.08.0.jar) + +[test-link2](https://edge.urm.nvidia.com/artifactory/sw-spark-maven/com/nvidia/rapids-4-spark_2.12/25.08.0/rapids-4-spark_2.12-25.08.0.jar.asc) + +[test-link3](https://edge.urm.nvidia.com/artifactory/sw-spark-maven/com/nvidia/rapids-4-spark_2.12/25.08.0/rapids-4-spark_2.12-25.08.0.jar.asc1) \ No newline at end of file diff --git a/markdown-link-check/action.yml b/markdown-link-check/action.yml index 744eca3..c409f28 100644 --- a/markdown-link-check/action.yml +++ b/markdown-link-check/action.yml @@ -15,16 +15,54 @@ name: 'Markdown Link Check' description: 'Check markdown links' +inputs: + use-quiet-mode: + description: 'Specify yes to only show errors in output' + required: false + default: 'no' + use-verbose-mode: + description: 'Specify yes to show detailed HTTP status for checked links' + required: false + default: 'yes' + config-file: + description: 'Path to custom configuration file (relative to repository root)' + required: false + folder-path: + description: 'Comma-separated folders to check (default: entire repository)' + required: false + max-depth: + description: 'Directory traversal depth (-1 for unlimited)' + required: false + default: -1 + check-modified-files-only: + description: 'Only check modified markdown files in PRs' + required: false + base-branch: + description: 'Comparison branch for modified files check' + required: false + file-extension: + description: 'File extension to check' + required: false + file-path: + description: 'Comma-separated specific files to check' + required: false + runs: using: "composite" steps: - name: Run markdown link check id: markdown-link-check - uses: tcort/github-action-markdown-link-check@v1 + uses: tcort/github-action-markdown-link-check@a800ad5f1c35bf61987946fd31c15726a1c9f2ba with: - max-depth: -1 - use-verbose-mode: 'yes' - base-branch: 'gh-pages' + use-quiet-mode: ${{ inputs.use-quiet-mode }} + use-verbose-mode: ${{ inputs.use-verbose-mode }} + config-file: ${{ inputs.config-file }} + folder-path: ${{ inputs.folder-path }} + max-depth: ${{ inputs.max-depth }} + check-modified-files-only: ${{ inputs.check-modified-files-only }} + base-branch: ${{ inputs.base-branch }} + file-extension: ${{ inputs.file-extension }} + file-path: ${{ inputs.file-path }} - name: Summarize results shell: bash