docs.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Licensed to the Apache Software Foundation (ASF) under one
  2. # or more contributor license agreements. See the NOTICE file
  3. # distributed with this work for additional information
  4. # regarding copyright ownership. The ASF licenses this file
  5. # to you under the Apache License, Version 2.0 (the
  6. # "License"); you may not use this file except in compliance
  7. # with the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. name: Docs
  17. on:
  18. pull_request:
  19. paths:
  20. - 'docs/**'
  21. concurrency:
  22. group: doc-${{ github.event.pull_request.number || github.ref }}
  23. cancel-in-progress: true
  24. jobs:
  25. img-check:
  26. name: Image Check
  27. timeout-minutes: 15
  28. runs-on: ubuntu-latest
  29. defaults:
  30. run:
  31. working-directory: docs
  32. steps:
  33. - uses: actions/checkout@v2
  34. - name: Set up Python 3.9
  35. uses: actions/setup-python@v2
  36. with:
  37. python-version: 3.9
  38. - name: Run Image Check
  39. run: python img_utils.py -v check
  40. dead-link:
  41. name: Dead Link
  42. runs-on: ubuntu-latest
  43. timeout-minutes: 30
  44. steps:
  45. - uses: actions/checkout@v2
  46. - run: sudo npm install -g markdown-link-check@3.10.0
  47. - run: |
  48. for file in $(find ./docs -name "*.md"); do
  49. markdown-link-check -c .dlc.json -q "$file"
  50. done