Skip to content

Commit

Permalink
Add scripts folder
Browse files Browse the repository at this point in the history
  • Loading branch information
phklive committed Jul 16, 2024
1 parent e913463 commit 762cc9f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/check-changelog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# Check if `CHANGELOG.md` file has been modified
if git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -q "CHANGELOG.md"; then
echo "CHANGELOG.md has been modified. Good job!"
else
echo "::error::CHANGELOG.md has not been modified. Please update the changelog."
exit 1
fi

0 comments on commit 762cc9f

Please sign in to comment.