2022-09-02 11:52:42 +02:00
|
|
|
name: Links
|
|
|
|
|
|
|
|
on:
|
2022-10-12 10:50:06 +02:00
|
|
|
workflow_dispatch:
|
2022-09-02 11:52:42 +02:00
|
|
|
push:
|
|
|
|
branches:
|
2022-10-18 16:17:41 +02:00
|
|
|
- "release/**"
|
2022-09-05 09:49:10 +02:00
|
|
|
paths:
|
|
|
|
- "**.md"
|
|
|
|
- "**.html"
|
2023-01-19 10:35:48 +01:00
|
|
|
- "./.github/workflows/check-links.yml"
|
2022-09-02 11:52:42 +02:00
|
|
|
pull_request:
|
2022-09-05 09:49:10 +02:00
|
|
|
paths:
|
|
|
|
- "**.md"
|
|
|
|
- "**.html"
|
2023-01-19 10:35:48 +01:00
|
|
|
- "./.github/workflows/check-links.yml"
|
2022-09-02 11:52:42 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
linkChecker:
|
2022-11-10 16:55:24 +01:00
|
|
|
runs-on: ubuntu-22.04
|
2022-09-02 11:52:42 +02:00
|
|
|
steps:
|
2022-09-19 10:59:46 +02:00
|
|
|
- name: Checkout
|
2023-05-05 14:42:20 +02:00
|
|
|
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
2022-09-19 10:59:46 +02:00
|
|
|
with:
|
2022-12-19 15:21:28 +01:00
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
2022-09-02 11:52:42 +02:00
|
|
|
|
|
|
|
- name: Link Checker
|
2023-05-05 14:42:20 +02:00
|
|
|
uses: lycheeverse/lychee-action@97189f2c0a3c8b0cb0e704fd4e878af6e5e2b2c5 # v1.7.0
|
2022-09-02 11:52:42 +02:00
|
|
|
with:
|
2022-11-14 16:35:35 +01:00
|
|
|
args: "--verbose --no-progress --max-concurrency 5 --exclude-path './cli/internal/helm/charts/cilium' './**/*.md' './**/*.html'"
|
2022-09-02 11:52:42 +02:00
|
|
|
fail: true
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|