mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 06:33:50 +03:00
93c6a9a652
Inspired by https://github.com/go-gitea/gitea/pull/24530#issuecomment-1558815301 This PR use a file filter action to do different CI jobs according changed files types. All types are defined in `.github/file-filters.yml`. Now there are 4 types, `docs`, `backend`, `frontend` and `build`. Then if a PR only changed docs files, those CI jobs which passed the conditions will run, and other types are also like this. --------- Co-authored-by: silverwind <me@silverwind.io>
15 lines
210 B
YAML
15 lines
210 B
YAML
docs: &docs
|
|
- "**/*.md"
|
|
- "docs/**"
|
|
|
|
backend: &backend
|
|
- "**/*.go"
|
|
- "**/*.tmpl"
|
|
- "go.mod"
|
|
- "go.sum"
|
|
|
|
frontend: &frontend
|
|
- "**/*.js"
|
|
- "web_src/**"
|
|
- "package.json"
|
|
- "package-lock.json"
|