Update changelog checker

This commit is contained in:
larzie 2024-11-07 16:07:12 +03:00 committed by GitHub
parent e4049f4b81
commit 9660667888
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,4 @@
# check the changelog for non ascii characters name: Check Changelog
name: Check CHANGELOG.md
on: on:
push: push:
@ -11,16 +10,19 @@ on:
jobs: jobs:
check: check:
name: Check CHANGELOG.md name: Check Changelog
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
- run: | - name: Check for non-ASCII characters in changelog
if grep -q -P -n "[\x80-\xFF]" CHANGELOG.md run: |
then if grep -q -P -n "[\x80-\xFF]" CHANGELOG.md; then
exit 1; echo "Non-ASCII characters found in CHANGELOG.md"
exit 1
else
echo "No non-ASCII characters found in CHANGELOG.md"
fi fi