File tree 2 files changed +16
-8
lines changed
2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 84
84
steps :
85
85
- name : Checkout Repository
86
86
uses : actions/checkout@v4
87
- with :
88
- fetch-depth : ' 0'
89
87
90
88
- name : Set up JDK
91
89
uses : actions/setup-java@v4
@@ -112,10 +110,12 @@ jobs:
112
110
&& jar -xf ../*.jar
113
111
114
112
- name : Generate a changelog
115
- uses : orhun/git-cliff-action@v3
113
+ uses : orhun/git-cliff-action@v4
116
114
id : changelog
117
115
with :
118
116
config : cliff.toml
117
+ version : ${{ needs.build-and-push-docker-image.outputs.new_version }}
118
+ args : ' --unreleased'
119
119
env :
120
120
OUTPUT : CHANGELOG.md
121
121
GITHUB_REPO : ${{ github.repository }}
Original file line number Diff line number Diff line change @@ -46,8 +46,19 @@ body = """
46
46
# template for the changelog footer
47
47
footer = """
48
48
\n
49
- Full changelog is available at \
50
- [{{ remote.github.owner }}/{{ remote.github.repo }}]/{{release.version}}\n
49
+ {% for release in releases -%}
50
+ {% if release.version -%}
51
+ {% if release.previous.version -%}
52
+ [{{ release.version | trim_start_matches(pat="v") }}]: \
53
+ https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}\
54
+ /compare/{{ release.previous.version }}..{{ release.version }}
55
+ {% endif -%}
56
+ {% else -%}
57
+ [{{release.version}}]: https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}\
58
+ /compare/{{ release.previous.version }}..HEAD
59
+ {% endif -%}
60
+ {% endfor %}
61
+
51
62
Developed by Development Gateway
52
63
"""
53
64
# remove the leading and trailing whitespace from the templates
@@ -84,6 +95,3 @@ filter_commits = false
84
95
topo_order = false
85
96
# sort the commits inside sections by oldest/newest order
86
97
sort_commits = " newest"
87
-
88
- [bump ]
89
- initial_tag = " v1.0.0"
You can’t perform that action at this time.
0 commit comments