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 1e73c8a commit 061d33a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 611 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ jobs:
if [ "$tag" == "$previous" ]; then
break
fi
if [ -n "$previous" ]; then
echo "## $tag" >> NEW_CHANGELOG.md
echo "" >> NEW_CHANGELOG.md
git log --pretty=format:"%B" "$tag..$previous" | awk 'NF {print "- " $0} !NF {print ""}' >> NEW_CHANGELOG.md
echo "" >> NEW_CHANGELOG.md
echo "## $tag" >> NEW_CHANGELOG.md
echo "" >> NEW_CHANGELOG.md
git log --pretty=format:"%B" "$tag..$previous" | awk 'NF {print "- " $0} !NF {print ""}' >> NEW_CHANGELOG.md
echo "" >> NEW_CHANGELOG.md
if [ -z "$previous" ]; then
break;
fi
previous=$tag
done
Expand All @@ -39,11 +40,11 @@ jobs:
mv NEW_CHANGELOG.md CHANGELOG.md
- name: Commit
run: |
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add CHANGELOG.md
if ! git diff --cached --quiet; then
git commit -m "Update Changelog"
git push
Expand Down
Loading

0 comments on commit 061d33a

Please sign in to comment.