Skip to content
Snippets Groups Projects
Commit 65f25ebb authored by Tim Hestenes Lehnen's avatar Tim Hestenes Lehnen
Browse files

Only allowing on-commit testing and scheduled testing in the canonical...

Only allowing on-commit testing and scheduled testing in the canonical 'project' group, not in forks. per @fjgarlin
parent a2e407b7
No related branches found
No related tags found
No related merge requests found
......@@ -26,9 +26,9 @@ workflow:
- if: $CI_PIPELINE_SOURCE == 'pipeline'
- if: $CI_PIPELINE_SOURCE == 'parent-child'
# Run on commits to the default branch
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PROJECT_ROOT_NAMESPACE == "project"
# The last rule above blocks manual and scheduled pipelines on non-default branch. The rule below allows them:
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_ROOT_NAMESPACE == "project"
# Run if triggered from Web using 'Run Pipelines'
- if: $CI_PIPELINE_SOURCE == "web"
# Run if triggered from WebIDE
......
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