Skip to content

Commit

Permalink
Check whether changelog entries are correct in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Nov 29, 2023
1 parent 01f67a6 commit 7c6d1a1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/check-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: Check changelog format
on:
pull_request:
paths:
- 'CHANGELOG.md'
jobs:
check-changelog:
runs-on: ubuntu-latest
steps:
- name: No lines must exceed 100 characters
run: |
awk 'length($0) > 100 { print NR-1 ": Line exceeds 100 chars: " $0; found=1 } END { if(found) exit 1 }' CHANGELOG.md

Check failure on line 13 in .github/workflows/check-changelog.yml

View workflow job for this annotation

GitHub Actions / check-formatting

13:121 [line-length] line too long (126 > 120 characters)

0 comments on commit 7c6d1a1

Please sign in to comment.