Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
danzuep committed Dec 4, 2023
1 parent 8119f90 commit 4fb3ec8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4fb3ec8

Please sign in to comment.