Skip to content

Commit

Permalink
cache
Browse files Browse the repository at this point in the history
  • Loading branch information
chen08209 committed Oct 11, 2024
1 parent 76c4646 commit ee33493
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
lastTag=$(grep -oP '^## \K.*' CHANGELOG.md | head -n 1)
previous=$lastTag
fi
echo "Previous Tag: $previous"
for ((i = 0; i <= ${#tags[@]}; i++)); do
if (( i < ${#tags[@]} )); then
tag=${tags[$i]}
Expand Down Expand Up @@ -58,6 +59,8 @@ jobs:
if ! git diff --cached --quiet; then
git commit -m "Update Changelog"
git push
else
echo "CHANGELOG.md not changed"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ee33493

Please sign in to comment.