Skip to content

Add a check for duplicate versions in ChangeLog #1

Add a check for duplicate versions in ChangeLog

Add a check for duplicate versions in ChangeLog #1

Workflow file for this run

name: changelog lint
on:
pull_request:
paths:
- 'ChangeLog'
jobs:

Check failure on line 7 in .github/workflows/changelog.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/changelog.yml

Invalid workflow file

You have an error in your yaml syntax on line 7
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