]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CI/linkcheck: only run if a Markdown file is changed
authorMarc Hoersken <info@marc-hoersken.de>
Sat, 17 Sep 2022 19:58:58 +0000 (21:58 +0200)
committerMarc Hoersken <info@marc-hoersken.de>
Sun, 18 Sep 2022 06:53:34 +0000 (08:53 +0200)
This saves CI resources and therefore a little energy.

Reviewed-by: Max Dymond
Closes #9531

.github/workflows/linkcheck.yml

index cad6fbca1dc97d1b109d23325e611ac815a0702f..4517ef7c0497f97421693de6347d53ccfad895fe 100644 (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