Skip to content

Commit e088e98

Browse files
committed
💚 ensure changelog has version entry before publishing package
1 parent 518f21b commit e088e98

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ jobs:
3131
exit 1
3232
fi
3333
echo "VERSION=$VERSION" >> $GITHUB_ENV
34+
- name: Check CHANGELOG.md
35+
id: check_changelog
36+
run: |
37+
set -e
38+
if ! grep -q "# $VERSION" CHANGELOG.md; then
39+
echo "CHANGELOG.md does not contain a section for $VERSION"
40+
exit 1
41+
fi
3442
- name: Set up Python
3543
id: setup_python
3644
uses: actions/setup-python@v4

0 commit comments

Comments
 (0)