You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

files-changed.yml 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. name: files-changed
  2. on:
  3. workflow_call:
  4. outputs:
  5. backend:
  6. value: ${{ jobs.detect.outputs.backend }}
  7. frontend:
  8. value: ${{ jobs.detect.outputs.frontend }}
  9. docs:
  10. value: ${{ jobs.detect.outputs.docs }}
  11. actions:
  12. value: ${{ jobs.detect.outputs.actions }}
  13. templates:
  14. value: ${{ jobs.detect.outputs.templates }}
  15. docker:
  16. value: ${{ jobs.detect.outputs.docker }}
  17. swagger:
  18. value: ${{ jobs.detect.outputs.swagger }}
  19. yaml:
  20. value: ${{ jobs.detect.outputs.yaml }}
  21. jobs:
  22. detect:
  23. runs-on: ubuntu-latest
  24. timeout-minutes: 3
  25. outputs:
  26. backend: ${{ steps.changes.outputs.backend }}
  27. frontend: ${{ steps.changes.outputs.frontend }}
  28. docs: ${{ steps.changes.outputs.docs }}
  29. actions: ${{ steps.changes.outputs.actions }}
  30. templates: ${{ steps.changes.outputs.templates }}
  31. docker: ${{ steps.changes.outputs.docker }}
  32. swagger: ${{ steps.changes.outputs.swagger }}
  33. yaml: ${{ steps.changes.outputs.yaml }}
  34. steps:
  35. - uses: actions/checkout@v4
  36. - uses: dorny/paths-filter@v2
  37. id: changes
  38. with:
  39. filters: |
  40. backend:
  41. - "**/*.go"
  42. - "templates/**/*.tmpl"
  43. - "assets/emoji.json"
  44. - "go.mod"
  45. - "go.sum"
  46. - "Makefile"
  47. - ".golangci.yml"
  48. - ".editorconfig"
  49. frontend:
  50. - "**/*.js"
  51. - "web_src/**"
  52. - "assets/emoji.json"
  53. - "package.json"
  54. - "package-lock.json"
  55. - "Makefile"
  56. - ".eslintrc.yaml"
  57. - ".stylelintrc.yaml"
  58. - ".npmrc"
  59. docs:
  60. - "**/*.md"
  61. - "docs/**"
  62. - ".markdownlint.yaml"
  63. - "package.json"
  64. - "package-lock.json"
  65. actions:
  66. - ".github/workflows/*"
  67. - "Makefile"
  68. templates:
  69. - "templates/**/*.tmpl"
  70. - "pyproject.toml"
  71. - "poetry.lock"
  72. docker:
  73. - "Dockerfile"
  74. - "Dockerfile.rootless"
  75. - "docker/**"
  76. - "Makefile"
  77. swagger:
  78. - "templates/swagger/v1_json.tmpl"
  79. - "Makefile"
  80. - "package.json"
  81. - "package-lock.json"
  82. - ".spectral.yaml"
  83. yaml:
  84. - "**/*.yml"
  85. - "**/*.yaml"
  86. - ".yamllint.yaml"
  87. - "pyproject.toml"
  88. - "poetry.lock"