diff --git a/.github/workflows/exclude-file.txt b/.github/workflows/exclude-file.txt index 6fd27c0694..bdf31635f5 100644 --- a/.github/workflows/exclude-file.txt +++ b/.github/workflows/exclude-file.txt @@ -20,4 +20,5 @@ weave-community.slack.com netlify.com slack.k8s.io docs.google.com -groups.google.com \ No newline at end of file +groups.google.com +gnu.org diff --git a/.github/workflows/link-checker.yaml b/.github/workflows/link-checker.yaml index 44fca5f03e..23a4f26d65 100644 --- a/.github/workflows/link-checker.yaml +++ b/.github/workflows/link-checker.yaml @@ -5,38 +5,32 @@ on: paths: - 'userdocs/**' - '**.md' - push: - branches: - - main - paths: - - 'userdocs/**' - - '**.md' jobs: link-checker: name: Check site links runs-on: ubuntu-latest - strategy: - matrix: - python-version: [3.9] steps: - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 #v4.1.2 - - name: Set up Python ${{ matrix.python-version }} + + - name: Set up Python uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d #v5.1.0 with: - python-version: ${{ matrix.python-version }} + python-version: 3.12 + - name: Setup Go uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 #v5.0.0 with: go-version: 1.21.x cache: false + - name: Install doc dependencies run: make install-site-deps + - name: Build docs for link check run: make build-pages - # Using link-checker action to check links in Markdown, HTML files + - name: Link Checker - uses: lycheeverse/lychee-action@c053181aa0c3d17606addfe97a9075a32723548a #v1.9.3 + uses: lycheeverse/lychee-action@f796c8b7d468feb9b8c0a46da3fac0af6874d374 #v2.2.0 with: - fail: true - args: --exclude-all-private --exclude-mail --exclude-file .github/workflows/exclude-file.txt --verbose --no-progress './**/*.md' './**/*.html' + args: --exclude-all-private --exclude-mail --exclude-file .github/workflows/exclude-file.txt --exclude-path goformation --verbose --no-progress './**/*.md' './**/*.html'