CI/linkcheck: only run if a Markdown file is changed

This saves CI resources and therefore a little energy.

Reviewed-by: Max Dymond
Closes #9531
This commit is contained in:
Marc Hoersken 2022-09-17 21:58:58 +02:00
parent f315b54000
commit e3a533f51b
No known key found for this signature in database
GPG Key ID: 61E03CBED7BC859E

View File

@ -5,15 +5,19 @@
name: Markdown links
on:
# Trigger the workflow on push or pull requests, but only for the
# master branch
push:
branches:
- master
- '*/ci'
paths:
- '.github/workflows/linkcheck.yml'
- '**.md'
pull_request:
branches:
- master
paths:
- '.github/workflows/linkcheck.yml'
- '**.md'
jobs:
# Docs: https://github.com/marketplace/actions/markdown-link-check