Skip to content
Snippets Groups Projects
Commit 6025f558 authored by Andrew Newdigate's avatar Andrew Newdigate
Browse files

Merge branch 'skip-renovate-validate-on-semantic-release-pushes' into 'main'

fix: skip renovate-validate on semantic release pushes

See merge request gitlab-com/gl-infra/common-ci-tasks!811
parents c97c7ce0 af0b1b23
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -82,6 +82,19 @@ container_image_tagged:
# Override the renovate_bot script to avoid what appears to be broken
# master builds when renovate attempts to run before the new image
# is build
renovate_validate:
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: 'never'
- if: $RENOVATE_DISABLED == 'true' || $RENOVATE_DISABLED == '1'
when: never
# Avoid running Renovate when Semantic Release pushes the release commit directly to main branch
- if: "$CI_COMMIT_AUTHOR =~ /semantic-release-bot/ && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
when: never
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" || $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
exists:
- renovate.json
renovate_bot:
rules:
# Renovate only ever runs on gitlab.com
Loading
Loading
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