Skip to content

Commit

Permalink
Add changelog warning
Browse files Browse the repository at this point in the history
  • Loading branch information
phklive committed Jul 16, 2024
1 parent f194eb4 commit fcecabe
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Check CHANGELOG.md

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
check-changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Check if CHANGELOG.md has been modified
run: |
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 "::warning::CHANGELOG.md has not been modified. Please update the changelog."
fi

0 comments on commit fcecabe

Please sign in to comment.