Skip to content

Commit

Permalink
build: fix changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
chillleader committed Oct 6, 2023
1 parent d7dc77b commit 05f5c45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/RELEASE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ jobs:
id: get_previous_tag
run: |
if [[ ${{steps.check_prerelease.outputs.isPreRelease}} == "true" ]]; then
TAG_NAME=$(git --no-pager tag --sort=-creatordate | head -1)
TAG_NAME=$(git --no-pager tag --sort=-creatordate | head -2 | tail -1)
else
TAG_NAME=$(git --no-pager tag --sort=-creatordate | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | head -1)
TAG_NAME=$(git --no-pager tag --sort=-creatordate | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | head -2 | tail -1)
fi
echo "previousTag: $TAG_NAME"
echo "previousTag=${TAG_NAME}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 05f5c45

Please sign in to comment.