2023-05-30 13:31:00 +08:00
|
|
|
name: files-changed
|
2023-05-25 09:33:31 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
outputs:
|
|
|
|
backend:
|
2023-05-30 13:31:00 +08:00
|
|
|
value: ${{ jobs.detect.outputs.backend }}
|
2023-05-25 09:33:31 +08:00
|
|
|
frontend:
|
2023-05-30 13:31:00 +08:00
|
|
|
value: ${{ jobs.detect.outputs.frontend }}
|
|
|
|
docs:
|
|
|
|
value: ${{ jobs.detect.outputs.docs }}
|
|
|
|
actions:
|
|
|
|
value: ${{ jobs.detect.outputs.actions }}
|
2023-06-15 02:17:58 +08:00
|
|
|
templates:
|
|
|
|
value: ${{ jobs.detect.outputs.templates }}
|
2023-06-19 10:53:20 +08:00
|
|
|
docker:
|
|
|
|
value: ${{ jobs.detect.outputs.docker }}
|
2023-06-29 22:37:41 +08:00
|
|
|
swagger:
|
|
|
|
value: ${{ jobs.detect.outputs.swagger }}
|
2023-09-08 10:24:06 +08:00
|
|
|
yaml:
|
|
|
|
value: ${{ jobs.detect.outputs.yaml }}
|
2023-05-25 09:33:31 +08:00
|
|
|
|
|
|
|
jobs:
|
2023-05-30 13:31:00 +08:00
|
|
|
detect:
|
2023-05-25 09:33:31 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 3
|
|
|
|
outputs:
|
|
|
|
backend: ${{ steps.changes.outputs.backend }}
|
|
|
|
frontend: ${{ steps.changes.outputs.frontend }}
|
2023-05-30 13:31:00 +08:00
|
|
|
docs: ${{ steps.changes.outputs.docs }}
|
|
|
|
actions: ${{ steps.changes.outputs.actions }}
|
2023-06-15 02:17:58 +08:00
|
|
|
templates: ${{ steps.changes.outputs.templates }}
|
2023-06-19 10:53:20 +08:00
|
|
|
docker: ${{ steps.changes.outputs.docker }}
|
2023-06-29 22:37:41 +08:00
|
|
|
swagger: ${{ steps.changes.outputs.swagger }}
|
2023-09-08 10:24:06 +08:00
|
|
|
yaml: ${{ steps.changes.outputs.yaml }}
|
2023-05-25 09:33:31 +08:00
|
|
|
steps:
|
2023-09-16 23:06:27 +08:00
|
|
|
- uses: actions/checkout@v4
|
2024-02-01 09:43:06 +08:00
|
|
|
- uses: dorny/paths-filter@v3
|
2023-05-25 09:33:31 +08:00
|
|
|
id: changes
|
|
|
|
with:
|
2023-05-30 13:31:00 +08:00
|
|
|
filters: |
|
|
|
|
backend:
|
|
|
|
- "**/*.go"
|
2023-06-15 02:17:58 +08:00
|
|
|
- "templates/**/*.tmpl"
|
2023-06-30 00:29:48 +08:00
|
|
|
- "assets/emoji.json"
|
2023-05-30 13:31:00 +08:00
|
|
|
- "go.mod"
|
|
|
|
- "go.sum"
|
2023-06-23 21:56:18 +08:00
|
|
|
- "Makefile"
|
2023-08-30 09:40:13 +08:00
|
|
|
- ".golangci.yml"
|
|
|
|
- ".editorconfig"
|
2024-03-06 09:48:14 +08:00
|
|
|
- "options/locale/locale_en-US.ini"
|
2023-05-30 13:31:00 +08:00
|
|
|
|
|
|
|
frontend:
|
|
|
|
- "**/*.js"
|
|
|
|
- "web_src/**"
|
2023-06-30 00:29:48 +08:00
|
|
|
- "assets/emoji.json"
|
2023-05-30 13:31:00 +08:00
|
|
|
- "package.json"
|
|
|
|
- "package-lock.json"
|
2023-06-23 21:56:18 +08:00
|
|
|
- "Makefile"
|
2023-08-30 09:40:13 +08:00
|
|
|
- ".eslintrc.yaml"
|
2024-03-30 04:32:35 +08:00
|
|
|
- "stylelint.config.js"
|
2023-08-30 09:40:13 +08:00
|
|
|
- ".npmrc"
|
2023-05-30 13:31:00 +08:00
|
|
|
|
|
|
|
docs:
|
|
|
|
- "**/*.md"
|
|
|
|
- "docs/**"
|
2023-08-30 09:40:13 +08:00
|
|
|
- ".markdownlint.yaml"
|
2023-09-16 21:23:06 +08:00
|
|
|
- "package.json"
|
|
|
|
- "package-lock.json"
|
2023-05-30 13:31:00 +08:00
|
|
|
|
|
|
|
actions:
|
|
|
|
- ".github/workflows/*"
|
2023-09-16 21:23:06 +08:00
|
|
|
- "Makefile"
|
2023-06-15 02:17:58 +08:00
|
|
|
|
|
|
|
templates:
|
2024-03-26 19:19:15 +08:00
|
|
|
- "tools/lint-templates-*.js"
|
2023-06-15 02:17:58 +08:00
|
|
|
- "templates/**/*.tmpl"
|
2023-08-30 09:40:13 +08:00
|
|
|
- "pyproject.toml"
|
2023-06-19 02:13:08 +08:00
|
|
|
- "poetry.lock"
|
2023-06-23 21:56:18 +08:00
|
|
|
|
2023-06-19 10:53:20 +08:00
|
|
|
docker:
|
|
|
|
- "Dockerfile"
|
|
|
|
- "Dockerfile.rootless"
|
|
|
|
- "docker/**"
|
2023-06-23 21:56:18 +08:00
|
|
|
- "Makefile"
|
2023-06-29 22:37:41 +08:00
|
|
|
|
|
|
|
swagger:
|
|
|
|
- "templates/swagger/v1_json.tmpl"
|
2023-08-21 06:59:19 +08:00
|
|
|
- "Makefile"
|
2023-08-30 09:40:13 +08:00
|
|
|
- "package.json"
|
|
|
|
- "package-lock.json"
|
2023-08-31 08:41:37 +08:00
|
|
|
- ".spectral.yaml"
|
2023-09-08 10:24:06 +08:00
|
|
|
|
|
|
|
yaml:
|
|
|
|
- "**/*.yml"
|
|
|
|
- "**/*.yaml"
|
|
|
|
- ".yamllint.yaml"
|
2023-09-16 21:23:06 +08:00
|
|
|
- "pyproject.toml"
|
|
|
|
- "poetry.lock"
|