docs-upstream.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. concurrency:
  5. group: ${{ github.workflow }}-${{ github.ref }}
  6. cancel-in-progress: true
  7. on:
  8. push:
  9. branches:
  10. - 'main'
  11. - 'v[0-9]*'
  12. paths:
  13. - '.github/workflows/docs-upstream.yml'
  14. - 'docs/**'
  15. pull_request:
  16. paths:
  17. - '.github/workflows/docs-upstream.yml'
  18. - 'docs/**'
  19. jobs:
  20. docs-yaml:
  21. runs-on: ubuntu-22.04
  22. steps:
  23. -
  24. name: Checkout
  25. uses: actions/checkout@v4
  26. -
  27. name: Upload reference YAML docs
  28. uses: actions/upload-artifact@v4
  29. with:
  30. name: docs-yaml
  31. path: docs/reference
  32. retention-days: 1
  33. validate:
  34. uses: docker/docs/.github/workflows/validate-upstream.yml@919a9b9104a34a40b30d116529bcce589a544d1c # pin for artifact v4 support: https://github.com/docker/docs/pull/19220
  35. needs:
  36. - docs-yaml
  37. with:
  38. module-name: docker/compose