blob: ab66a005400ff5d71d5941eaea88e4a3505fd2f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
---
name: Check changelog format
on:
pull_request:
paths:
- .github/workflows/check-changelog.yml
- 'CHANGELOG.md'
- 'ios/CHANGELOG.md'
- 'android/CHANGELOG.md'
permissions: {}
env:
LINE_LIMIT: 100
jobs:
check-changelog:
runs-on: ubuntu-latest
strategy:
matrix:
changelog: [CHANGELOG.md, ios/CHANGELOG.md, android/CHANGELOG.md]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- 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 }' ${{ matrix.changelog }}
|