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 c96a1f4 commit a54de14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 69 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- name: Generate
run: |
tags=$(git tag --merged $(git rev-parse HEAD) --sort=-creatordate)
tags=($(git tag --merged $(git rev-parse HEAD) --sort=-creatordate))
lastTag=""
previous=""
if [ -f CHANGELOG.md ]; then
Expand All @@ -33,6 +33,12 @@ jobs:
break
fi
echo "## $tag" >> NEW_CHANGELOG.md
echo "" >> NEW_CHANGELOG.md
if [ -n "$previous" ]; then
git log --pretty=format:"%B" "$previous..$tag" | awk 'NF {print "- " $0} !NF {print ""}' >> NEW_CHANGELOG.md
fi
echo "" >> NEW_CHANGELOG.md
previous=$tag
done
if [ -f CHANGELOG.md ]; then
cat CHANGELOG.md >> NEW_CHANGELOG.md
Expand Down
68 changes: 0 additions & 68 deletions CHANGELOG.md

This file was deleted.

0 comments on commit a54de14

Please sign in to comment.