mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 20:59:31 +01: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"
|