Skip to content

Commit 3a6eb28

Browse files
Merge pull request #2745 from VWS-Python/add-gha-find-replace-validation
Add validation for gha-find-replace actions
2 parents 9ad2e18 + af3d682 commit 3a6eb28

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
echo "underline=${underline}" >> "$GITHUB_OUTPUT"
5656
5757
- name: Update changelog
58+
id: update_changelog
5859
uses: jacobtomlinson/gha-find-replace@v3
5960
with:
6061
find: "Next\n----"
@@ -63,6 +64,12 @@ jobs:
6364
include: CHANGELOG.rst
6465
regex: false
6566

67+
- name: Check Update changelog was modified
68+
run: |
69+
if [ "${{ steps.update_changelog.outputs.modifiedFiles }}" = "0" ]; then
70+
echo "Error: No files were modified when updating changelog"
71+
exit 1
72+
fi
6673
- uses: stefanzweifel/git-auto-commit-action@v7
6774
id: commit
6875
with:

0 commit comments

Comments
 (0)