@@ -149,6 +149,7 @@ jobs:
149149 set -x
150150
151151 LOCAL_TEMPLATE_LOCATION="${RUNNER_TEMP:-/tmp}/.cliff-monorepo.toml"
152+ ROOT_MODULE=$(echo "${ROOT_MODULE}"|sed -E 's/\/v[0-9]+$//')
152153
153154 root_dir="$(git rev-parse --show-toplevel)"
154155 cd "${root_dir}"
@@ -246,7 +247,7 @@ jobs:
246247 --tag-pattern "${tag_pattern}" \
247248 ${excluded} \
248249 --strip all \
249- --current \
250+ --latest \
250251 --with-tag-message "${TAG_MESSAGE}" \
251252 | sed -E 's/^(#+) /\1# /g'
252253
@@ -264,7 +265,7 @@ jobs:
264265 FULL_NOTES=$(git-cliff \
265266 ${cliff_config_flag} \
266267 --tag-pattern "${tag_pattern}" \
267- --current \
268+ --latest \
268269 --with-tag-message "${TAG_MESSAGE}")
269270
270271 # Assemble final release notes (Part 1 + Part 2)
@@ -291,7 +292,7 @@ jobs:
291292
292293 echo "::notice title=release-notes::Generated two-part release notes for mono-repo"
293294 -
294- name : Generate release notes ( local config)
295+ name : Generate release notes [ local config]
295296 # this uses git-cliff to generate a release note from the commit history
296297 if : ${{ inputs.is-monorepo != 'true' && steps.check-config.outputs.exists == 'true' }}
297298 id : notes-local
@@ -302,10 +303,10 @@ jobs:
302303 with :
303304 config : ${{ inputs.cliff-config }}
304305 args : >-
305- --current
306+ --latest
306307 --with-tag-message '${{ steps.get-message.outputs.message }}'
307308 -
308- name : Generate release notes ( remote config)
309+ name : Generate release notes [ remote config]
309310 # this uses git-cliff action with remote config URL
310311 if : ${{ inputs.is-monorepo != 'true' && steps.check-config.outputs.exists == 'false' }}
311312 id : notes-remote
@@ -317,7 +318,7 @@ jobs:
317318 config : ' '
318319 args : >-
319320 --config-url '${{ inputs.cliff-config-url }}'
320- --current
321+ --latest
321322 --with-tag-message '${{ steps.get-message.outputs.message }}'
322323 -
323324 name : Create github release
0 commit comments