Add a check for duplicate versions in ChangeLog #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: changelog lint | ||
on: | ||
pull_request: | ||
paths: | ||
- 'ChangeLog' | ||
jobs: | ||
check-changelog: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
- name: Check for duplicate versions in Changelog | ||
run: | | ||
if grep -P 'Version \d+\.\d+\.\d+' ChangeLog | sort | uniq -d; then | ||
echo "Duplicate versions found in Changelog" | ||
exit 1 | ||
fi | ||