Skip to content

Update csv

Update csv #20

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:
fetch-depth: 0
- name: Prepare url file
run: |
set -e
if [[ $GITHUB_REF_NAME == "main" ]]; then
git diff -c HEAD^ -- server/kb_urls.csv |
grep "+https" | cut -d ',' -f1 |
sed 's/ +//g' >kb_urls.txt
else
git diff -c origin/main -- server/kb_urls.csv |
grep "+https" | cut -d ',' -f1 |
sed 's/ +//g' >kb_urls.txt
fi
- name: Link Checker
uses: lycheeverse/lychee-action@v1
with:
args: --verbose --timeout 20 --max-retries 10 --retry-wait-time 4 --no-progress --max-concurrency 10 kb_urls.txt
fail: true