1 parent f0f4282 commit cb549ecCopy full SHA for cb549ec
1 file changed
.github/workflows/release.yml
@@ -52,6 +52,7 @@ jobs:
52
echo "underline=${underline}" >> "$GITHUB_OUTPUT"
53
54
- name: Update changelog
55
+ id: update_changelog
56
uses: jacobtomlinson/gha-find-replace@v3
57
with:
58
find: "Next\n----"
@@ -60,6 +61,12 @@ jobs:
60
61
include: CHANGELOG.rst
62
regex: false
63
64
+ - name: Check Update changelog was modified
65
+ run: |
66
+ if [ "${{ steps.update_changelog.outputs.modifiedFiles }}" = "0" ]; then
67
+ echo "Error: No files were modified when updating changelog"
68
+ exit 1
69
+ fi
70
- uses: stefanzweifel/git-auto-commit-action@v7
71
id: commit
72
0 commit comments