linkcheck.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
  2. #
  3. # SPDX-License-Identifier: curl
  4. name: Markdown links
  5. on:
  6. push:
  7. branches:
  8. - master
  9. - '*/ci'
  10. paths:
  11. - '.github/workflows/linkcheck.yml'
  12. - '**.md'
  13. pull_request:
  14. branches:
  15. - master
  16. paths:
  17. - '.github/workflows/linkcheck.yml'
  18. - '**.md'
  19. concurrency:
  20. group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
  21. cancel-in-progress: true
  22. permissions: {}
  23. jobs:
  24. # Docs: https://github.com/marketplace/actions/markdown-link-check
  25. check:
  26. runs-on: ubuntu-latest
  27. steps:
  28. - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
  29. name: checkout
  30. - name: trim the cmdline docs markdown files
  31. run: find docs/cmdline-opts -name "*.md" ! -name "_*" ! -name MANPAGE.md | xargs -n1 ./.github/scripts/cleancmd.pl
  32. - uses: gaurav-nelson/github-action-markdown-link-check@5c5dfc0ac2e225883c0e5f03a85311ec2830d368 # v1
  33. with:
  34. use-quiet-mode: 'yes'