Skip to content
Snippets Groups Projects

Disable pipelines on default branch for non canonical projects

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -98,7 +98,7 @@ workflow:
variables:
<<: *next-ruby-variables
PIPELINE_NAME: 'Scheduled Ruby $RUBY_VERSION $CI_COMMIT_BRANCH branch pipeline'
# For `$CI_DEFAULT_BRANCH` branch in forks, don't create a pipeline
# For `$CI_DEFAULT_BRANCH` branch in forks, we don't want to run any pipelines, as they serve no purpose and could lead to community contributors accidentally using up their pipeline minutes quota.
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PROJECT_NAMESPACE !~ /^gitlab(-org|-cn)?($|\/)/'
when: never
# This work around https://gitlab.com/gitlab-org/gitlab/-/issues/332411 whichs prevents usage of dependency proxy
Loading