Skip to content

Commit

Permalink
cache
Browse files Browse the repository at this point in the history
  • Loading branch information
chen08209 committed Oct 10, 2024
1 parent 573579d commit 88ab050
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
- name: Generate
run: |
tags=$(git tag --merged $(git rev-parse HEAD) --sort=-creatordate)
lastTag = ""
previous = ""
lastTag=""
previous=""
if [ -f CHANGELOG.md ]; then
lastTag = $(grep -oP '^## \K.*' CHANGELOG.md | head -n 1)
previous = $lastTag
lastTag=$(grep -oP '^## \K.*' CHANGELOG.md | head -n 1)
previous=$lastTag
fi
for tag in $tags; do
if [ -n "$lastTag" ] && [ "$(echo -e "$tag\n$lastTag" | sort -V | head -n 1)" == "$tag" ]; then
Expand Down

0 comments on commit 88ab050

Please sign in to comment.