Skip to content

Commit f9451d1

Browse files
committed
Add changelog linting to GitHub CI
1 parent 30263b2 commit f9451d1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/haskell.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,3 +645,26 @@ jobs:
645645
echo 'The diff must not contain any `undefined` values'
646646
false
647647
fi
648+
649+
changelog-lint:
650+
runs-on: ubuntu-latest
651+
652+
steps:
653+
- uses: actions/checkout@v4
654+
655+
- name: Install changelog linter
656+
run: |
657+
cd "$(mktemp -d)"
658+
cat <<EOF >cabal.project
659+
source-repository-package
660+
type: git
661+
location: https://github.com/neilmayhew/changelogs.git
662+
tag: 8a1029b8e67b534fe918477275026e1a38c5053c
663+
EOF
664+
cabal update
665+
cabal install changelogs
666+
667+
- name: Run linter
668+
run: |
669+
git ls-files '*/CHANGELOG.md' | grep -ve -spec/ | xargs -r changelogs --inplace
670+
git diff

0 commit comments

Comments
 (0)