From 757c1bd04e2dd32267334927afb512077b39e446 Mon Sep 17 00:00:00 2001 From: Philipp Stadler <hello@phstadler.com> Date: Mon, 15 Jul 2024 18:12:52 +0200 Subject: [PATCH] chore: generate changelog only when necessary --- .gitlab-ci.yml | 5 +---- cliff.toml | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 343d510..f37d36a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,10 +28,7 @@ changelog: name: orhunp/git-cliff:latest entrypoint: [""] rules: - - if: $CI_PIPELINE_SOURCE == "schedule" - when: never - # tagging should only happen after the thing was merged, so do it on the main branch build - - if: $CI_COMMIT_BRANCH == "main" + - if: $CI_COMMIT_TAG variables: GIT_STRATEGY: clone # clone entire repo instead of reusing workspace GIT_DEPTH: 0 # avoid shallow clone to give cliff all the info it needs diff --git a/cliff.toml b/cliff.toml index 5fb7cc1..649f6cd 100644 --- a/cliff.toml +++ b/cliff.toml @@ -68,7 +68,7 @@ commit_parsers = [ # protect breaking changes from being skipped due to matching a skipping commit_parser protect_breaking_commits = false # filter out the commits that are not matched by commit parsers -filter_commits = false +filter_commits = true # regex for matching git tags # tag_pattern = "v[0-9].*" # regex for skipping tags -- GitLab