Skip to content

check links in markdown files #13

check links in markdown files

check links in markdown files #13

Workflow file for this run

name: check links in markdown files
on:
repository_dispatch:
workflow_dispatch:
schedule:
- cron: "00 18 */3 * *"
jobs:
link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get list of changed files
id: changed-files
run: echo "::set-output name=files::$(git diff --name-only ${{ github.sha }}^ ${{ github.sha }} | tr '\n' ' ')"
- name: Run lychee link checker if any files changed
uses: lycheeverse/lychee-action@v1
if: steps.changed-files.outputs.files != ''
with:
args: --verbose --exclude '(doi|genderit)\.org' --exit 1 ${{ steps.changed-files.outputs.files }}