ci: only lint api on api files changes

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2347>
This commit is contained in:
jo 2023-01-30 19:19:16 +01:00
parent 3d9e12b3e5
commit b2c7c26552
1 changed files with 3 additions and 0 deletions

View File

@ -175,6 +175,9 @@ lint_api:
allow_failure: true
stage: lint
dependencies: []
rules:
- if: $CI_COMMIT_BRANCH =~ /(stable|develop)/
- changes: [api/**/*]
image: $CI_REGISTRY/funkwhale/ci/python-funkwhale-api:3.11
before_script: