diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml new file mode 100644 index 0000000..40a7219 --- /dev/null +++ b/.github/workflows/check-links.yml @@ -0,0 +1,29 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + +name: Check Links + +permissions: {} + +on: + pull_request: + branches: + - "*" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + linkChecker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Check unrendered links + id: lychee_unrendered + uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 # v2.4.1 + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + with: + fail: true + debug: false + args: --github-token ${{secrets.GITHUB_TOKEN}} --config config/lychee.toml --max-concurrency 2 --max-retries 3 --retry-wait-time 5 --accept 200,429 --timeout 60 -E ./content \ No newline at end of file diff --git a/config/lychee.toml b/config/lychee.toml new file mode 100644 index 0000000..92bf725 --- /dev/null +++ b/config/lychee.toml @@ -0,0 +1 @@ +exclude_path = ["public/docs/reference/"] \ No newline at end of file