ci: reduce ci usage by changing workflow rules

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2282>
This commit is contained in:
jo 2022-12-14 16:48:29 +01:00
parent 96c2359732
commit a599bede1e
1 changed files with 5 additions and 3 deletions

View File

@ -17,10 +17,12 @@ default:
workflow:
rules:
# Run for any event on the default branches in the funkwhale namespace
- if: >
$CI_PROJECT_NAMESPACE == "funkwhale" &&
$CI_COMMIT_BRANCH =~ /(stable|develop)/
# Run for merge requests from any repo or branches
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
when: never
- if: $CI_COMMIT_BRANCH
stages:
- review