File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed
Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 8484 steps :
8585 - name : Checkout Repository
8686 uses : actions/checkout@v4
87- with :
88- fetch-depth : ' 0'
8987
9088 - name : Set up JDK
9189 uses : actions/setup-java@v4
@@ -112,10 +110,12 @@ jobs:
112110 && jar -xf ../*.jar
113111
114112 - name : Generate a changelog
115- uses : orhun/git-cliff-action@v3
113+ uses : orhun/git-cliff-action@v4
116114 id : changelog
117115 with :
118116 config : cliff.toml
117+ version : ${{ needs.build-and-push-docker-image.outputs.new_version }}
118+ args : ' --unreleased'
119119 env :
120120 OUTPUT : CHANGELOG.md
121121 GITHUB_REPO : ${{ github.repository }}
Original file line number Diff line number Diff line change @@ -46,8 +46,19 @@ body = """
4646# template for the changelog footer
4747footer = """
4848\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+
5162Developed by Development Gateway
5263"""
5364# remove the leading and trailing whitespace from the templates
@@ -84,6 +95,3 @@ filter_commits = false
8495topo_order = false
8596# sort the commits inside sections by oldest/newest order
8697sort_commits = " newest"
87-
88- [bump ]
89- initial_tag = " v1.0.0"
You can’t perform that action at this time.
0 commit comments