diff --git a/.github/workflows/_version.yml b/.github/workflows/_version.yml index fadbad7..3076ca9 100644 --- a/.github/workflows/_version.yml +++ b/.github/workflows/_version.yml @@ -69,14 +69,12 @@ jobs: echo 'Generate release notes from the Git commit log.' last_tag=$(git describe --abbrev=0 --tags 2>/dev/null) if [[ -z "$last_tag" ]]; then - echo "## ${{ env.title }}" > release-notes.txt + echo "## ${{ steps.gitversion.outputs.preReleaseLabel }}" > release-notes.txt git log --pretty=format:"- %s" >> release-notes.txt else - echo "## ${{ env.title }} changes since $last_tag" > release-notes.txt + echo "## ${{ steps.gitversion.outputs.preReleaseLabel }} changes since $last_tag" > release-notes.txt git log --pretty=format:"- %s" --since="$last_tag" >> release-notes.txt fi - env: - title: '${{ steps.gitversion.outputs.preReleaseLabel }}' # https://github.com/actions/upload-artifact - name: Upload version artifacts