Skip to content
Snippets Groups Projects
Unverified Commit 5480ea2e authored by jooola's avatar jooola
Browse files

ci: only run on main project or merge requests

parent 29b37f91
No related branches found
No related tags found
1 merge request!59ci: improve pipeline
......@@ -3,6 +3,15 @@ include:
- project: funkwhale/ci
file: /templates/pre-commit.yml
workflow:
rules:
# Run for any event on the default branch in the funkwhale namespace
- if: >
$CI_PROJECT_NAMESPACE == "funkwhale" &&
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# Run for merge requests
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
stages:
- lint
- test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment