docs-upstream.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # this workflow runs the remote validate bake target from docker/docs
  2. # to check if yaml reference docs used in this repo are valid
  3. name: docs-upstream
  4. # Default to 'contents: read', which grants actions to read commits.
  5. #
  6. # If any permission is set, any permission not included in the list is
  7. # implicitly set to "none".
  8. #
  9. # see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
  10. permissions:
  11. contents: read
  12. concurrency:
  13. group: ${{ github.workflow }}-${{ github.ref }}
  14. cancel-in-progress: true
  15. on:
  16. push:
  17. branches:
  18. - 'main'
  19. - 'v[0-9]*'
  20. paths:
  21. - '.github/workflows/docs-upstream.yml'
  22. - 'docs/**'
  23. pull_request:
  24. paths:
  25. - '.github/workflows/docs-upstream.yml'
  26. - 'docs/**'
  27. jobs:
  28. docs-yaml:
  29. runs-on: ubuntu-latest
  30. steps:
  31. -
  32. name: Checkout
  33. uses: actions/checkout@v4
  34. -
  35. name: Upload reference YAML docs
  36. uses: actions/upload-artifact@v4
  37. with:
  38. name: docs-yaml
  39. path: docs/reference
  40. retention-days: 1
  41. validate:
  42. uses: docker/docs/.github/workflows/validate-upstream.yml@main
  43. needs:
  44. - docs-yaml
  45. with:
  46. module-name: docker/compose