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 fe43ed3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/check-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Check changelog format
on:
pull_request:
paths:
- 'CHANGELOG.md'
env:
LINE_LIMIT: 100
jobs:
check-changelog:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: No lines must exceed ${{ env.LINE_LIMIT }} characters
run: |
awk 'length($0) > '$LINE_LIMIT' { print NR ": Line exceeds '$LINE_LIMIT' chars: " $0; found=1 } \
END { if(found) exit 1 }' CHANGELOG.md

0 comments on commit fe43ed3

Please sign in to comment.