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 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. name: files-changed
  2. on:
  3. workflow_call:
  4. outputs:
  5. backend:
  6. description: "whether backend files changed"
  7. value: ${{ jobs.detect.outputs.backend }}
  8. frontend:
  9. description: "whether frontend files changed"
  10. value: ${{ jobs.detect.outputs.frontend }}
  11. docs:
  12. description: "whether docs files changed"
  13. value: ${{ jobs.detect.outputs.docs }}
  14. actions:
  15. description: "whether actions files changed"
  16. value: ${{ jobs.detect.outputs.actions }}
  17. jobs:
  18. detect:
  19. name: detect which files changed
  20. runs-on: ubuntu-latest
  21. timeout-minutes: 3
  22. # Map a step output to a job output
  23. outputs:
  24. backend: ${{ steps.changes.outputs.backend }}
  25. frontend: ${{ steps.changes.outputs.frontend }}
  26. docs: ${{ steps.changes.outputs.docs }}
  27. actions: ${{ steps.changes.outputs.actions }}
  28. steps:
  29. - uses: actions/checkout@v3
  30. - uses: dorny/paths-filter@v2
  31. id: changes
  32. with:
  33. filters: |
  34. backend:
  35. - "**/*.go"
  36. - "**/*.tmpl"
  37. - "go.mod"
  38. - "go.sum"
  39. frontend:
  40. - "**/*.js"
  41. - "web_src/**"
  42. - "package.json"
  43. - "package-lock.json"
  44. docs:
  45. - "**/*.md"
  46. - "docs/**"
  47. actions:
  48. - ".github/workflows/*"