Links #185
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: Copyright (c) 2026 Cisco and/or its affiliates. | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: Links | |
| on: | |
| repository_dispatch: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "00 06 * * *" | |
| jobs: | |
| linkChecker: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| submodules: 'recursive' | |
| - name: Setup Golang | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.23.1' | |
| - name: Setup Task | |
| uses: arduino/setup-task@v2 | |
| with: | |
| version: '3.48.0' | |
| - name: Setup UV | |
| shell: bash | |
| run: | | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| - name: Update GITHUB_PATH | |
| shell: bash | |
| run: echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| - name: Build docs | |
| shell: bash | |
| run: | | |
| task build | |
| - name: Link Checker | |
| id: lychee | |
| uses: lycheeverse/lychee-action@v2.0.2 # CVE-2024-48908: pin >=2.0.2 | |
| with: | |
| args: '--config lychee.toml --exclude-path "(^|/)404\\.html$" .build/site' | |
| fail: true | |