Skip to content

Workflow file for this run

---
name: check kb_urls
on:
push:
paths:
- .github/workflows/check_urls.yml
- "server/kb_urls.csv"
pull_request:
paths:
- .github/workflows/check_urls.yml
- "server/kb_urls.csv"
jobs:
url-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
sparse-checkout: |
server/kb_urls.csv
sparse-checkout-cone-mode: false
fetch-depth: 0
- name: Prepare url file
run: |
git diff -c main -- server/kb_urls.csv | grep "+https" | cut -d ',' -f1 | sed 's/ +//g' >kb_urls.txt
cat kb_urls.txt
- name: Link Checker
uses: lycheeverse/lychee-action@v1
with:
args: --verbose --timeout 20 --no-progress kb_urls.txt