Skip to content
Snippets Groups Projects
Commit 757c1bd0 authored by Philipp Stadler's avatar Philipp Stadler
Browse files

chore: generate changelog only when necessary

parent 35757c21
No related branches found
No related tags found
1 merge request!3Stuff
Pipeline #13841 passed
...@@ -28,10 +28,7 @@ changelog: ...@@ -28,10 +28,7 @@ changelog:
name: orhunp/git-cliff:latest name: orhunp/git-cliff:latest
entrypoint: [""] entrypoint: [""]
rules: rules:
- if: $CI_PIPELINE_SOURCE == "schedule" - if: $CI_COMMIT_TAG
when: never
# tagging should only happen after the thing was merged, so do it on the main branch build
- if: $CI_COMMIT_BRANCH == "main"
variables: variables:
GIT_STRATEGY: clone # clone entire repo instead of reusing workspace GIT_STRATEGY: clone # clone entire repo instead of reusing workspace
GIT_DEPTH: 0 # avoid shallow clone to give cliff all the info it needs GIT_DEPTH: 0 # avoid shallow clone to give cliff all the info it needs
......
...@@ -68,7 +68,7 @@ commit_parsers = [ ...@@ -68,7 +68,7 @@ commit_parsers = [
# protect breaking changes from being skipped due to matching a skipping commit_parser # protect breaking changes from being skipped due to matching a skipping commit_parser
protect_breaking_commits = false protect_breaking_commits = false
# filter out the commits that are not matched by commit parsers # filter out the commits that are not matched by commit parsers
filter_commits = false filter_commits = true
# regex for matching git tags # regex for matching git tags
# tag_pattern = "v[0-9].*" # tag_pattern = "v[0-9].*"
# regex for skipping tags # regex for skipping tags
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment