diff --git a/.github/utils/release_tag_msg.txt b/.github/utils/release_tag_msg.txt new file mode 100644 index 0000000..b2f8521 --- /dev/null +++ b/.github/utils/release_tag_msg.txt @@ -0,0 +1,3 @@ +TAG_NAME + +The full release changelog can be seen in the [online docs](https://matgenix.github.io/qtoolkit/changelog) and in the [repository source file](https://github.com/matgenix/qtoolkit/blob/TAG_NAME/CHANGELOG.md). diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b151ef7..3165304 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,6 +48,12 @@ jobs: git config --global user.name "${GIT_USER_NAME}" git commit CHANGELOG.md -m "Release ${GITHUB_REF#refs/tags/}" + - name: Move tag to new HEAD + run: | + TAG_MSG=.github/utils/release_tag_msg.txt + sed -i "s|TAG_NAME|${GITHUB_REF#refs/tags/}|" "${TAG_MSG}" + git tag -af -F "${TAG_MSG}" ${GITHUB_REF#refs/tags/} + - name: Update '${{ env.PUBLISH_UPDATE_BRANCH }}' with automated changes uses: CasperWA/push-protected@v2 with: