Skip to content

Throw warning if CHANGELOG.md file has not been modified #2

Throw warning if CHANGELOG.md file has not been modified

Throw warning if CHANGELOG.md file has not been modified #2

Workflow file for this run

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 "::error::CHANGELOG.md has not been modified. Please update the changelog."
fi