Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a check for duplicate versions in ChangeLog #2997

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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

2 changes: 1 addition & 1 deletion docs/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ genrule(
# Plugin versions to pull the docs from
plugins = {
"python": "v1.5.0",
"java": "v0.3.0",
"java": "v0.4.0",
"go": "v1.11.5",
"cc": "v0.4.0",
"shell": "v0.2.0",
Expand Down
Loading