Skip to content

Commit 7ad6279

Browse files
committed
fix: allow tag-only releases when no new commits
1 parent 7bed42e commit 7ad6279

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ jobs:
4444
pip install build twine commitizen pygithub
4545
4646
- name: Generate CHANGELOG
47-
run: cz changelog
47+
run: |
48+
if git log $(git describe --tags --abbrev=0)..HEAD --oneline | grep -q .; then
49+
cz changelog
50+
else
51+
echo "No new commits"
52+
fi
4853
4954
- name: Commit updated CHANGELOG.md
5055
run: |

0 commit comments

Comments
 (0)