From: Marc Hoersken Date: Sat, 17 Sep 2022 19:58:58 +0000 (+0200) Subject: CI/linkcheck: only run if a Markdown file is changed X-Git-Tag: curl-7_86_0~208 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e3a533f51b138b588ff04a2fb59f4b6539d82228;p=thirdparty%2Fcurl.git 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 --- diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index cad6fbca1d..4517ef7c04 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -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