Skip to content

Commit

Permalink
fixup: move line lim to variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Nov 29, 2023
1 parent e0d0639 commit dd8ea6a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/check-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ 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 100 characters
- name: No lines must exceed ${{ env.LINE_LIMIT }} characters
run: |
awk 'length($0) > 100 { print NR-1 ": Line exceeds 100 chars: " $0; found=1 } END { if(found) exit 1 }' CHANGELOG.md
awk 'length($0) > $LINE_LIMIT { print NR-1 ": Line exceeds $LINE_LIMIT chars: " $0; found=1 } END { if(found) exit 1 }' CHANGELOG.md

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

View workflow job for this annotation

GitHub Actions / check-formatting

17:121 [line-length] line too long (142 > 120 characters)

0 comments on commit dd8ea6a

Please sign in to comment.