-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(release): Continue release config
- Loading branch information
Showing
3 changed files
with
19 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
export GIT_CLIFF_TEMPLATE="\ | ||
{% for group, commits in commits | group_by(attribute=\"group\") %} | ||
{{ group | upper_first }}\ | ||
{% for commit in commits %} | ||
- {% if commit.breaking %}(breaking) {% endif %}{{ commit.message | upper_first }} ({{ commit.id | truncate(length=7, end=\"\") }})\ | ||
{% endfor %} | ||
{% endfor %}" | ||
changelog=$(git cliff --config cliff.toml --unreleased --strip all) | ||
|
||
git checkout main | ||
git fetch -p && git pull | ||
git tag -a "$1" -m "Release $1" -m "${changelog}" | ||
|
||
git push --tags |