👷 chore(release): use different config for tag release

Avoids adding PR links which aren't clickable on the tags page.
This commit is contained in:
welpo
2024-01-15 19:56:41 +01:00
parent ca65cd5a62
commit 64482cacb3
2 changed files with 108 additions and 3 deletions

View File

@@ -37,18 +37,18 @@ export GIT_CLIFF_TEMPLATE="\
{% set_global breaking_header_shown = true -%}
{%- endif %}
{%- if commit.breaking %}
- {{ commit.message | upper_first }} ({{ commit.id | truncate(length=7, end=\"\") }})\
- {{ commit.message | upper_first -}}
{% endif -%}
{% endfor %}
{% for group, group_commits in commits | group_by(attribute=\"group\") %}
{{ group | striptags | trim | upper_first }}
{% for commit in group_commits %}
- {% if commit.breaking %}[**BREAKING‼**] {% endif %}{{ commit.message | upper_first }} ({{ commit.id | truncate(length=7, end=\"\") }})\
- {% if commit.breaking %}[‼BREAKING‼] {% endif %}{{ commit.message | upper_first }}
{%- endfor %}
{% endfor %}"
# Generate the tag description.
changelog=$(git cliff --tag "$VERSION_TAG" --unreleased --strip all)
changelog=$(git cliff --config cliff-tag.toml --tag "$VERSION_TAG" --unreleased --strip all)
# Create a signed and annotated tag.
git tag -s -a "$VERSION_TAG" -m "Release $VERSION_TAG" -m "$changelog"