Skip to content

Commit

Permalink
ci: fix changelog generation
Browse files Browse the repository at this point in the history
  • Loading branch information
dekobon committed Dec 27, 2022
1 parent 28af38d commit 405a6fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
run: |
git fetch --tags
git fetch --unshallow || true
git pull origin ${GITHUB_REF_NAME}
make release-notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion build/changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ else
LAST_RELEASE="$(git tag -l | ${GREP} -E '^v[0-9]+\.[0-9]+\.[0-9]+$$' | sort --version-sort --field-separator=. --reverse | ${GREP} -v "${VERSION}" | head -n1)"
fi

LAST_RELEASE_HASH="$(git show --format=%H "${LAST_RELEASE}" | head -n1)"
LAST_RELEASE_HASH="$(git show --format=%H "${LAST_RELEASE}" | head -n1 | ${SED} -e 's/^tag //')"

echo "## Changes between ${LAST_RELEASE} [$LAST_RELEASE_HASH] and ${VERSION}:"
git log --format="%s (%h)" "${LAST_RELEASE_HASH}..HEAD" | \
Expand Down

0 comments on commit 405a6fa

Please sign in to comment.