Skip to content

Commit

Permalink
Merge pull request #636 from intersystems/master-ci-changelog
Browse files Browse the repository at this point in the history
feat(ci): add a check for changelog updates on PR to v1/v1-next
  • Loading branch information
isc-tleavitt authored Dec 2, 2024
2 parents 934a283 + 1421a2b commit 84e7c93
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Changelog Check

on:
pull_request:
branches:
- v1
- v1-next

jobs:
check_changelog:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Check for updated CHANGELOG.md
run: |
git fetch origin ${{ github.event.pull_request.base.ref }}
if git diff --name-only origin/${{ github.event.pull_request.base.ref }}...HEAD | grep -q 'CHANGELOG.md'; then
echo "CHANGELOG.md has been updated."
else
echo "CHANGELOG.md has not been updated."
exit 1
fi

0 comments on commit 84e7c93

Please sign in to comment.