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 588a550 commit 787f726
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 81 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,8 @@ jobs:
lastTag=$(grep -oP '^## \K.*' CHANGELOG.md | head -n 1)
previous=$lastTag
fi
for ((i = 0; i <= ${#tags[@]}; i++)); do
if (( i < ${#tags[@]} )); then
tag=${tags[$i]}
else
tag=""
fi
if [ -n "$lastTag" ] && [ "$(echo -e "$tag\n$lastTag" | sort -V | head -n 1)" == "$tag" ]; then
break
fi
for ((i = 0; i < ${#tags[@]}; i++)); do
tag=${tags[$i]}
echo "## $tag" >> NEW_CHANGELOG.md
echo "" >> NEW_CHANGELOG.md
if [ -n "$previous" ]; then
Expand Down
72 changes: 0 additions & 72 deletions CHANGELOG.md

This file was deleted.

0 comments on commit 787f726

Please sign in to comment.