name: Links on: workflow_dispatch: push: branches: - "release/**" paths: - "**.md" - "**.html" - "./.github/workflows/check-links.yml" pull_request: paths: - "**.md" - "**.html" - "./.github/workflows/check-links.yml" jobs: linkChecker: runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 with: ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }} - name: Link Checker uses: lycheeverse/lychee-action@97189f2c0a3c8b0cb0e704fd4e878af6e5e2b2c5 # v1.7.0 with: args: "--verbose --no-progress --max-concurrency 5 --exclude-path './cli/internal/helm/charts/cilium' './**/*.md' './**/*.html'" fail: true env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}